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§
Sourcefn test_for_drift(
&mut self,
reference: &[A],
current: &[A],
) -> Result<DriftTestResult<A>, String>
fn test_for_drift( &mut self, reference: &[A], current: &[A], ) -> Result<DriftTestResult<A>, String>
Performs the statistical test for drift
Sourcefn update_parameters(&mut self, performance_feedback: A) -> Result<(), String>
fn update_parameters(&mut self, performance_feedback: A) -> Result<(), String>
Updates test parameters based on historical performance