pub struct DifficultyAssessment {
pub difficulty: AnomalyDetectionDifficulty,
pub score: f64,
pub factors: DifficultyFactors,
pub recommended_methods: Vec<DetectionMethod>,
pub expected_detection_rate: f64,
pub key_indicators: Vec<String>,
}Expand description
Result of difficulty calculation with full breakdown.
Fields§
§difficulty: AnomalyDetectionDifficultyOverall difficulty level.
score: f64Raw difficulty score (0.0-1.0).
factors: DifficultyFactorsFactors used in calculation.
recommended_methods: Vec<DetectionMethod>Recommended detection methods.
expected_detection_rate: f64Expected detection rate.
key_indicators: Vec<String>Key indicators that make this detectable.
Implementations§
Source§impl DifficultyAssessment
impl DifficultyAssessment
Sourcepub fn new(
difficulty: AnomalyDetectionDifficulty,
score: f64,
factors: DifficultyFactors,
methods: Vec<DetectionMethod>,
) -> Self
pub fn new( difficulty: AnomalyDetectionDifficulty, score: f64, factors: DifficultyFactors, methods: Vec<DetectionMethod>, ) -> Self
Creates a new difficulty assessment.
Sourcepub fn with_indicator(self, indicator: impl Into<String>) -> Self
pub fn with_indicator(self, indicator: impl Into<String>) -> Self
Adds a key indicator.
Trait Implementations§
Source§impl Clone for DifficultyAssessment
impl Clone for DifficultyAssessment
Source§fn clone(&self) -> DifficultyAssessment
fn clone(&self) -> DifficultyAssessment
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 DifficultyAssessment
impl Debug for DifficultyAssessment
Source§impl<'de> Deserialize<'de> for DifficultyAssessment
impl<'de> Deserialize<'de> for DifficultyAssessment
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 DifficultyAssessment
impl RefUnwindSafe for DifficultyAssessment
impl Send for DifficultyAssessment
impl Sync for DifficultyAssessment
impl Unpin for DifficultyAssessment
impl UnwindSafe for DifficultyAssessment
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