1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # chronix-anomaly
//!
//! Anomaly detection for the Chronix time-series database.
//!
//! ## Detectors
//!
//! | Detector | Type | Assumptions |
//! |----------|------|-------------|
//! | [`ZScoreDetector`] | Statistical | Approximate normality |
//! | [`ModifiedZScoreDetector`] | Robust statistical | Symmetric distribution |
//! | [`IqrDetector`] | Non-parametric | None |
//! | [`ForecastResidualDetector`] | Model-based | Adequate forecast model |
//! | [`MovingAverageResidualDetector`] | Model-based | Local stationarity |
//! | [`DynamicThresholdDetector`] | Adaptive | Evolving baseline |
//!
//! All detectors implement [`AnomalyDetector`] and produce [`AnomalyScore`]
//! values in `[0, 1]` for uniform downstream consumption.
//!
//! ## Batch Operations
//!
//! The [`batch`] module provides parallel batch detection:
//!
//! - [`batch::batch_detect_zscore`] — SIMD-accelerated Z-Score across many series
//! - [`batch::batch_detect_iqr`] — parallel IQR detection
//! - [`batch::batch_fit_detect`] — fit-and-detect in one pass
//!
//! ## Persistence
//!
//! [`DetectorStore`] serialises fitted detector state for checkpointing
//! and recovery.
pub use ;
pub use CusumDetector;
pub use DynamicThresholdDetector;
pub use AnomalyError;
pub use ForecastResidualDetector;
pub use IqrDetector;
pub use ModifiedZScoreDetector;
pub use MovingAverageResidualDetector;
pub use DetectorStore;
pub use ;
pub use ZScoreDetector;