museopheno.time_series.SmoothSignal.interpolation

SmoothSignal.interpolation(X, kind='linear', fill_value='extrapolate', **params)[source]

Based on scipy.interpolate.interp1d

Parameters
  • X (array_like) – A N-D array of real values. The length of y along the interpolation axis must be equal to the length of dates.

  • kind (str, default 'linear') – Specifies the kind of interpolation as a string (‘linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic’, ‘previous’, ‘next’, where ‘zero’, ‘slinear’, ‘quadratic’ and ‘cubic’ refer to a spline interpolation of zeroth, first, second or third order; ‘previous’ and ‘next’ simply return the previous or next value of the point) or as an integer specifying the order of the spline interpolator to use. Default is ‘linear’.

  • fill_value (str, default 'extrapolate') – Extrapolate

References

scipy.interpolate.interp1d