Sequential outlier detection and removal using Hampel identifiers.
It supports f32
and f64
.
Add this to your Cargo.toml
:
toml
[dependencies]
hampel = "0.1"
```rust
fn main() {
// Window size: 5 (>= 3)
// Initialization value of window: 0.0
// Threshold: Median of the window ±3σ.
let mut window = hampel::Window::
let filtered = window.update(input);
} ```
Licensed under either of Apache License, Version 2.0 or MIT License at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.