pub struct DifficultyCalculator { /* private fields */ }Expand description
Calculator for detection difficulty of anomalies.
Implementations§
Source§impl DifficultyCalculator
impl DifficultyCalculator
Sourcepub fn calculate(&self, anomaly: &LabeledAnomaly) -> AnomalyDetectionDifficulty
pub fn calculate(&self, anomaly: &LabeledAnomaly) -> AnomalyDetectionDifficulty
Calculates the detection difficulty for an anomaly.
Sourcepub fn calculate_with_factors(
&self,
anomaly: &LabeledAnomaly,
factors: &DifficultyFactors,
) -> AnomalyDetectionDifficulty
pub fn calculate_with_factors( &self, anomaly: &LabeledAnomaly, factors: &DifficultyFactors, ) -> AnomalyDetectionDifficulty
Calculates difficulty with additional context factors.
Sourcepub fn compute_difficulty_score(
&self,
anomaly: &LabeledAnomaly,
factors: &DifficultyFactors,
) -> f64
pub fn compute_difficulty_score( &self, anomaly: &LabeledAnomaly, factors: &DifficultyFactors, ) -> f64
Computes the raw difficulty score (0.0-1.0).
Sourcepub fn recommended_methods(
&self,
difficulty: AnomalyDetectionDifficulty,
) -> Vec<DetectionMethod>
pub fn recommended_methods( &self, difficulty: AnomalyDetectionDifficulty, ) -> Vec<DetectionMethod>
Returns recommended detection methods for a difficulty level.
Sourcepub fn infer_factors(&self, anomaly: &LabeledAnomaly) -> DifficultyFactors
pub fn infer_factors(&self, anomaly: &LabeledAnomaly) -> DifficultyFactors
Infers difficulty factors from an anomaly’s metadata.
Trait Implementations§
Source§impl Clone for DifficultyCalculator
impl Clone for DifficultyCalculator
Source§fn clone(&self) -> DifficultyCalculator
fn clone(&self) -> DifficultyCalculator
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 DifficultyCalculator
impl Debug for DifficultyCalculator
Auto Trait Implementations§
impl Freeze for DifficultyCalculator
impl RefUnwindSafe for DifficultyCalculator
impl Send for DifficultyCalculator
impl Sync for DifficultyCalculator
impl Unpin for DifficultyCalculator
impl UnwindSafe for DifficultyCalculator
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