8
説明が見つからないin the documentationまたはどこでもオンラインです。 「スリネーラー」は何を意味し、それは何をしていますか? scipy/interpolate/interpolate.py
、 slinear
のソースを見てみるとSciPyでは、 'slinear'補間は何ですか?
説明が見つからないin the documentationまたはどこでもオンラインです。 「スリネーラー」は何を意味し、それは何をしていますか? scipy/interpolate/interpolate.py
、 slinear
のソースを見てみるとSciPyでは、 'slinear'補間は何ですか?
はオーダーsplmake
状態のためのドキュメント以来1
if kind in ['zero', 'slinear', 'quadratic', 'cubic']:
order = {'nearest': 0, 'zero': 0,'slinear': 1,
'quadratic': 2, 'cubic': 3}[kind]
kind = 'spline'
...
if kind in ('linear', 'nearest'):
# Make a "view" of the y array that is rotated to the interpolation
# axis.
minval = 2
if kind == 'linear':
self._call = self._call_linear
elif kind == 'nearest':
self.x_bds = (x[1:] + x[:-1])/2.0
self._call = self._call_nearest
else:
minval = order + 1
self._call = self._call_spline
self._spline = splmake(x, y, order=order)
のsplineです:
def splmake(xk, yk, order=3, kind='smoothest', conds=None):
"""
Return a representation of a spline given data-points at internal knots
...
ます私にそれを打つ。私は同じ結論を思いついた。 –
@ NilsWernerもし私たちの両者がソースに頼らざるを得なかったとしても、ドキュメントが不完全であることを示す良い指標です。 – Hooked
「線形」より「薄型」を選択できるのはいつですか?非常に短いテストでは、「線形」がより速く、同じ結果を返すことが示されています。 –