hampel

Sequential outlier detection and removal using Hampel identifiers.

It supports f32 and f64.

Usage

Add this to your Cargo.toml:

toml [dependencies] hampel = "0.1"

Example

```rust fn main() { // Window size: 5 (>= 3) // Initialization value of window: 0.0 // Threshold: Median of the window ±3σ. let mut window = hampel::Window::::new(0.0, 3.0);

let filtered = window.update(input);

} ```

example

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.

Contribution

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.