pub struct StlResult {
pub trend: Vec<f64>,
pub seasonal: Vec<f64>,
pub residual: Vec<f64>,
pub weights: Vec<f64>,
pub trend_strength: f64,
pub seasonal_strength: f64,
pub period: usize,
pub seasonal_span: usize,
pub trend_span: usize,
pub low_pass_span: usize,
}Expand description
An STL decomposition: data[i] = trend[i] + seasonal[i] + residual[i].
Fields§
§trend: Vec<f64>Trend component.
seasonal: Vec<f64>Seasonal component.
residual: Vec<f64>Remainder data − trend − seasonal.
weights: Vec<f64>Robustness weight of each point in the last pass, in [0, 1] (all 1
without robust). A weight near 0 marks a point treated as an outlier.
trend_strength: f64Strength of the trend, max(0, 1 − Var(R)/Var(T + R)).
seasonal_strength: f64Strength of the seasonality, max(0, 1 − Var(R)/Var(S + R)).
period: usizeThe period decomposed.
seasonal_span: usizeSpan of the seasonal smoother used.
trend_span: usizeSpan of the trend smoother used (the default when none was given).
low_pass_span: usizeSpan of the low-pass smoother used (the default when none was given).
Trait Implementations§
impl StructuralPartialEq for StlResult
Auto Trait Implementations§
impl Freeze for StlResult
impl RefUnwindSafe for StlResult
impl Send for StlResult
impl Sync for StlResult
impl Unpin for StlResult
impl UnsafeUnpin for StlResult
impl UnwindSafe for StlResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more