pub struct PhaseConfig {
pub alpha: f64,
pub cv_engage: f64,
pub cv_disengage: f64,
pub min_samples: u64,
}Expand description
Tuning for a PhaseEstimator.
Fields§
§alpha: f64EWMA weight for the period and CV updates (higher = faster adaptation, noisier estimate).
cv_engage: f64Engage prediction once the CV drops below this AND the minimum sample count is met.
cv_disengage: f64Disengage once the CV rises above this (hysteresis: strictly
greater than cv_engage so the mode cannot flap at one
threshold).
min_samples: u64Minimum observed inter-arrivals before prediction is eligible.
Trait Implementations§
Source§impl Clone for PhaseConfig
impl Clone for PhaseConfig
Source§fn clone(&self) -> PhaseConfig
fn clone(&self) -> PhaseConfig
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 moreimpl Copy for PhaseConfig
Source§impl Debug for PhaseConfig
impl Debug for PhaseConfig
Auto Trait Implementations§
impl Freeze for PhaseConfig
impl RefUnwindSafe for PhaseConfig
impl Send for PhaseConfig
impl Sync for PhaseConfig
impl Unpin for PhaseConfig
impl UnsafeUnpin for PhaseConfig
impl UnwindSafe for PhaseConfig
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