pub struct BehavioralAnalyzer { /* private fields */ }Expand description
Behavioral analyzer using temporal attractors
Implementations§
Source§impl BehavioralAnalyzer
impl BehavioralAnalyzer
Sourcepub fn new(dimensions: usize) -> AnalysisResult<Self>
pub fn new(dimensions: usize) -> AnalysisResult<Self>
Create new behavioral analyzer
Sourcepub async fn analyze_behavior(
&self,
sequence: &[f64],
) -> AnalysisResult<AnomalyScore>
pub async fn analyze_behavior( &self, sequence: &[f64], ) -> AnalysisResult<AnomalyScore>
Analyze behavior sequence for anomalies
Uses temporal-attractor-studio to:
- Calculate Lyapunov exponents
- Identify attractors in state space
- Compare against baseline behavior
Performance: <100ms p99 (87ms baseline + overhead)
Sourcepub async fn train_baseline(
&self,
sequences: Vec<Vec<f64>>,
) -> AnalysisResult<()>
pub async fn train_baseline( &self, sequences: Vec<Vec<f64>>, ) -> AnalysisResult<()>
Train baseline behavior profile
Sourcepub fn is_anomalous(&self, score: &AnomalyScore) -> bool
pub fn is_anomalous(&self, score: &AnomalyScore) -> bool
Check if score indicates anomaly
Sourcepub fn set_threshold(&self, threshold: f64)
pub fn set_threshold(&self, threshold: f64)
Update anomaly detection threshold
Sourcepub fn baseline_count(&self) -> usize
pub fn baseline_count(&self) -> usize
Get number of baseline attractors
Auto Trait Implementations§
impl Freeze for BehavioralAnalyzer
impl RefUnwindSafe for BehavioralAnalyzer
impl Send for BehavioralAnalyzer
impl Sync for BehavioralAnalyzer
impl Unpin for BehavioralAnalyzer
impl UnwindSafe for BehavioralAnalyzer
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