incline.InterpolatingSpline¶
- class incline.InterpolatingSpline(function_order=3, s=None, s_factor=1.0)[source]¶
Smoothing spline that chooses its own knots.
UnivariateSplineplaces knots to satisfy a residual budget, so the fitted map depends on the data and no operator exists – probing it misses by a factor of order one, not by rounding error. Uncertainty comes from the bootstrap.- Variables:
- Parameters:
- __init__(function_order=3, s=None, s_factor=1.0)¶
Methods
__init__([function_order, s, s_factor])analytic_operators(axis, order)State the smoothing and derivative operators directly, if known.
evaluate(axis, y, order)Fit the spline and differentiate it.
fit(axis, y[, order, se, noise, ...])Estimate the trend and, optionally, its uncertainty.
native_posterior(axis, y, order, ...)Uncertainty from the smoother's own probability model.
operators(axis, order)The smoothing and derivative operators for this configuration.
params()Report the spline degree and budget.
scale_of(axis)Approximate scale implied by the budget multiplier.
with_scale(scale, axis)Scale the residual budget; larger budget means a smoother fit.
Attributes
has_native_posterioris_linearWhether the derivative is a fixed linear map of the data.
linearrequires_regular_grid