pub enum OrderSelectionMethod {
Pacf,
PacfAnnual,
}Expand description
Order selection criterion for autoregressive model fitting.
Controls how the lag order is chosen when fitting a time series model. Two variants are accepted:
"pacf"— classical periodic Yule-Walker with PACF-based order selection. Default."pacf_annual"— extends"pacf"with an annual component (PAR(p)-A), adding one extra coefficient ψ per (entity, season) that multiplies the rolling 12-month average of past observations.
Variants§
Pacf
Periodic Yule-Walker partial autocorrelation method (PACF).
PacfAnnual
Periodic Yule-Walker order selection augmented with an annual component.
When selected, the estimation pipeline performs four steps beyond the
classical Self::Pacf path:
- Extended Yule-Walker fitting — the system is augmented with a cross-correlation term between the current-season inflow and the rolling 12-month average, yielding the annual coefficient ψ alongside the classical AR coefficients.
- Annual-stats computation — per-season sample mean μ^A and Bessel-corrected standard deviation σ^A of the rolling 12-month average are computed for each hydro plant.
- Parquet emission — the triple (ψ, μ^A, σ^A) is written to
inflow_annual_component.parquetin the output directory. - Widened LP lag stride — the noise-column layout in the LP is extended to accommodate the annual term alongside the classical lags.
Trait Implementations§
Source§impl Clone for OrderSelectionMethod
impl Clone for OrderSelectionMethod
Source§fn clone(&self) -> OrderSelectionMethod
fn clone(&self) -> OrderSelectionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderSelectionMethod
impl Debug for OrderSelectionMethod
Source§impl Default for OrderSelectionMethod
impl Default for OrderSelectionMethod
Source§fn default() -> OrderSelectionMethod
fn default() -> OrderSelectionMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderSelectionMethod
impl<'de> Deserialize<'de> for OrderSelectionMethod
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderSelectionMethod
impl RefUnwindSafe for OrderSelectionMethod
impl Send for OrderSelectionMethod
impl Sync for OrderSelectionMethod
impl Unpin for OrderSelectionMethod
impl UnsafeUnpin for OrderSelectionMethod
impl UnwindSafe for OrderSelectionMethod
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more