pub struct EnsembleConfig {
pub indicator_weight: f64,
pub hmm_weight: f64,
pub agreement_threshold: f64,
pub require_hmm_warmup: bool,
pub agreement_confidence_boost: f64,
pub disagreement_confidence_penalty: f64,
}Expand description
Configuration for ensemble detector
Fields§
§indicator_weight: f64Weight for technical indicator detector (0.0 - 1.0)
hmm_weight: f64Weight for HMM detector (0.0 - 1.0)
agreement_threshold: f64Minimum agreement threshold to declare a regime
require_hmm_warmup: boolUse HMM only after warmup (more conservative)
agreement_confidence_boost: f64Boost confidence when both methods agree
disagreement_confidence_penalty: f64Reduce confidence when methods disagree
Implementations§
Source§impl EnsembleConfig
impl EnsembleConfig
Sourcepub fn hmm_focused() -> Self
pub fn hmm_focused() -> Self
Favor HMM (more statistical)
Sourcepub fn indicator_focused() -> Self
pub fn indicator_focused() -> Self
Favor indicators (faster response)
Trait Implementations§
Source§impl Clone for EnsembleConfig
impl Clone for EnsembleConfig
Source§fn clone(&self) -> EnsembleConfig
fn clone(&self) -> EnsembleConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EnsembleConfig
impl Debug for EnsembleConfig
Source§impl Default for EnsembleConfig
impl Default for EnsembleConfig
Source§impl<'de> Deserialize<'de> for EnsembleConfig
impl<'de> Deserialize<'de> for EnsembleConfig
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 EnsembleConfig
impl RefUnwindSafe for EnsembleConfig
impl Send for EnsembleConfig
impl Sync for EnsembleConfig
impl Unpin for EnsembleConfig
impl UnsafeUnpin for EnsembleConfig
impl UnwindSafe for EnsembleConfig
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