incline.Loess¶
- class incline.Loess(frac=0.3, degree=1, robust=True)[source]¶
LOESS smoothing, then a local polynomial fit to the smooth.
Linear only when
robustis off. The robust variant reweights according to the residuals it just computed, which makes the map depend on the data – so it is routed to the bootstrap. Note that robust is the default, matching the usual expectation of LOESS.- Variables:
- Parameters:
- __init__(frac=0.3, degree=1, robust=True)¶
Methods
__init__([frac, degree, robust])analytic_operators(axis, order)State the smoothing and derivative operators directly, if known.
evaluate(axis, y, order)Smooth with LOWESS, then differentiate the smooth locally.
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 fraction, degree 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_gridsupported_orders