Skip to main content

Module predictor

Module predictor 

Source
Expand description

Predictor implementations for numeric and opaque fields.

Re-exports§

pub use ewma::EwmaPredictor;
pub use hold_last::HoldLastPredictor;
pub use hold_last::OpaqueHoldLast;
pub use linear::LinearPredictor;
pub use poly::CubicPredictor;
pub use poly::PolyPredictor;
pub use poly::QuadraticPredictor;

Modules§

ewma
Exponentially weighted moving average predictor for numeric fields.
hold_last
Hold-last predictors for numeric and opaque fields.
linear
Linear predictor alias; the implementation lives in super::poly.
poly
Polynomial extrapolation for linear, quadratic and cubic predictors.

Structs§

ConformanceError
Errors reported by predictor conformance checks.

Enums§

PredictorError
Errors reported by predictor updates.
PredictorKind
The predictor kinds allowed in v1 schemas.

Traits§

Predictor
Object-safe numeric predictor interface used by the engine and custom models.

Functions§

check_predictor
Check a predictor implementation against a predictor trace JSON.