pub struct HMMConfig {
pub n_states: usize,
pub min_observations: usize,
pub learning_rate: f64,
pub transition_smoothing: f64,
pub lookback_window: usize,
pub min_confidence: f64,
}Expand description
Configuration for HMM regime detector
Fields§
§n_states: usizeNumber of hidden states (regimes)
min_observations: usizeMinimum observations before making predictions
learning_rate: f64Learning rate for online updates (0 = no online learning)
transition_smoothing: f64Smoothing factor for transition probabilities
lookback_window: usizeWindow size for return calculations
min_confidence: f64Confidence threshold for regime classification
Implementations§
Source§impl HMMConfig
impl HMMConfig
Sourcepub fn crypto_optimized() -> Self
pub fn crypto_optimized() -> Self
Config optimized for crypto (faster regime changes)
Sourcepub fn conservative() -> Self
pub fn conservative() -> Self
Conservative config (more stable regimes)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HMMConfig
impl<'de> Deserialize<'de> for HMMConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HMMConfig
impl RefUnwindSafe for HMMConfig
impl Send for HMMConfig
impl Sync for HMMConfig
impl Unpin for HMMConfig
impl UnsafeUnpin for HMMConfig
impl UnwindSafe for HMMConfig
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