incline.NaiveDifference¶
- class incline.NaiveDifference[source]¶
Central finite differences on the raw series.
The estimator the package exists to argue against: it does no smoothing, so it inherits the noise directly. Kept because the comparison is the point, and because its exact variance makes that comparison quantitative. A finite difference requires at least two observations.
- __init__()¶
- Return type:
None
Methods
__init__()analytic_operators(axis, derivative_order)The difference stencil, written down directly.
bootstrap_uncertainty(estimate, axis, y, ...)Bootstrap a nonlinear smoother, preserving short-range dependence.
evaluate(axis, y, derivative_order)Average the forward and backward difference at each point.
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()Smoother-specific settings, recorded on the result.
scale_of(axis)Return None because finite differencing has no bandwidth.
with_scale(scale, axis)Reject a scale because finite differencing has no bandwidth.
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.
- evaluate(axis, y, derivative_order)[source]¶
Average the forward and backward difference at each point.