pub struct AcfResult {
pub acf: Vec<f64>,
pub confidence_threshold: f64,
pub bartlett_limits: Vec<f64>,
}Expand description
Result of autocorrelation analysis.
Fields§
§acf: Vec<f64>Autocorrelation values for lags 0, 1, …, max_lag.
acf[0] is always 1.0.
confidence_threshold: f6495% white-noise threshold = z₀.₉₇₅ / √n: under the hypothesis that the series is white noise, |acf[k]| above it (k > 0) is significant.
bartlett_limits: Vec<f64>95% limits for lags 1, …, max_lag by Bartlett’s formula, z₀.₉₇₅ · √((1 + 2 Σⱼ₌₁ᵏ⁻¹ r(j)²) / n): for lag k, under the hypothesis that the autocorrelation is zero beyond lag k − 1 (an MA(k − 1) process). The bands an ACF plot draws to choose an MA order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AcfResult
impl RefUnwindSafe for AcfResult
impl Send for AcfResult
impl Sync for AcfResult
impl Unpin for AcfResult
impl UnsafeUnpin for AcfResult
impl UnwindSafe for AcfResult
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