incline.Loess¶
- class incline.Loess(span=0.3, robust=True)[source]¶
Local-linear LOWESS smoothing and numerical differentiation.
Linear only when
robustis off. The robust variant reweights according to the residuals it just computed, which makes the map depend on the data and routes uncertainty to the bootstrap. The implementation delegates the smooth to statsmodels’ reference LOWESS implementation, which is local linear, then differentiates the returned smooth on its actual time axis.- Variables:
- Parameters:
Note
LOWESS is due to William S. Cleveland (1979), https://doi.org/10.1080/01621459.1979.10481038. The smooth is computed by
statsmodels.nonparametric.smoothers_lowess.lowess().Methods
__init__([span, robust])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.
evaluate(axis, y, derivative_order)Smooth with LOWESS, then differentiate the returned curve.
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 span and robustness.
scale_of(axis)The LOWESS fraction is already a scale.
with_scale(scale, axis)Set the LOWESS fraction.
Attributes
has_native_posteriorLinear exactly when robust reweighting is disabled.
linearrequires_regular_griduses_noise_for_fitWhether a supplied noise model can change the point estimate.
- evaluate(axis, y, derivative_order)[source]¶
Smooth with LOWESS, then differentiate the returned curve.