incline.SavitzkyGolay¶
- class incline.SavitzkyGolay(window_length=15, degree=3)[source]¶
Savitzky-Golay filter: local polynomial least squares on a fixed window.
A fixed convolution, so the derivative operator is available in closed form as well as by probing – the two agree to 1e-15, which makes this the natural cross-check on the probe machinery.
- Variables:
- Parameters:
- __init__(window_length=15, degree=3)¶
Methods
__init__([window_length, degree])analytic_operators(axis, derivative_order)State the smoothing and derivative operators directly, if known.
bootstrap_uncertainty(estimate, axis, y, ...)Bootstrap a nonlinear smoother, preserving short-range dependence.
closed_form_se(axis, derivative_order, ...)Interior standard error from the filter coefficients directly.
evaluate(axis, y, derivative_order)Filter the series and differentiate.
evaluate_with_noise(axis, y, ...)Evaluate, allowing an adaptive smoother to use a fitted covariance.
fit(axis, y[, derivative_order, ...])Estimate the trend and, optionally, its uncertainty.
native_posterior(axis, y, derivative_order, ...)Uncertainty from the smoother's own probability model.
operators(axis, derivative_order)The smoothing and derivative operators for this configuration.
params()Report the window and polynomial degree.
scale_of(axis)Window length as a fraction of the sample.
with_scale(scale, axis)Set the window to
scaleof the sample.Attributes
has_native_posterioris_linearWhether the derivative is a fixed linear map of the data.
uses_noise_for_fitWhether a supplied noise model can change the point estimate.
- closed_form_se(axis, derivative_order, standard_deviation)[source]¶
Interior standard error from the filter coefficients directly.