Skip to main content

StatisticalTest

Trait StatisticalTest 

Source
pub trait StatisticalTest<A: Float + Send + Sync>: Send + Sync {
    // Required methods
    fn test_for_drift(
        &mut self,
        reference: &[A],
        current: &[A],
    ) -> Result<DriftTestResult<A>, String>;
    fn update_parameters(
        &mut self,
        performance_feedback: A,
    ) -> Result<(), String>;
    fn reset(&mut self);
}
Expand description

Trait for statistical drift detection tests

Required Methods§

Source

fn test_for_drift( &mut self, reference: &[A], current: &[A], ) -> Result<DriftTestResult<A>, String>

Performs the statistical test for drift

Source

fn update_parameters(&mut self, performance_feedback: A) -> Result<(), String>

Updates test parameters based on historical performance

Source

fn reset(&mut self)

Resets the test state

Implementors§