AnomalyDetection.rs
Time series AnomalyDetection for Rust
Learn how it works
Installation
Add this line to your application’s Cargo.toml
under [dependencies]
:
= "0.3"
Getting Started
Detect anomalies in a time series
use AnomalyDetector;
let series = vec!;
let period = 7; // number of observations in a single period
let res = fit.unwrap;
Get anomalies
res.anomalies;
Parameters
Set parameters
.alpha // level of statistical significance
.max_anoms // maximum number of anomalies as percent of data
.direction // Positive, Negative, or Both
.verbose // show progress
params
Credits
This library was ported from the AnomalyDetection R package and is available under the same license.
References
History
View the changelog
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
To get started with development: