time_stream.infill.BSplineInterpolation

class time_stream.infill.BSplineInterpolation(order, **kwargs)[source]

B-spline interpolation using scipy make_interp_spline with configurable order. https://docs.scipy.org/doc/scipy-1.16.1/reference/generated/scipy.interpolate.make_interp_spline.html

Parameters:

order (int)

__init__(order, **kwargs)[source]

Initialize B-spline interpolation.

Parameters:
  • order (int) – Order of the B-spline (1-5, where 3=cubic, 2=quadratic, 1=linear).

  • **kwargs – Additional scipy parameters for the make_interp_spline method.

Methods

__init__(order, **kwargs)

Initialize B-spline interpolation.

apply(df, time_name, periodicity, infill_column)

Apply the infill method to the time series data.

available()

Return a sorted list of available registered keys.

get(spec, **kwargs)

Resolve spec to an instance of Self:

register(register_cls)

A method used as a decorator for subclasses to add to the register by its name attribute.

Attributes

min_points_required

B-spline needs at least order+1 points.

name