one-euro-rs

Crates.ioone-euro-rs
lib.rsone-euro-rs
version0.2.0
sourcesrc
created_at2018-09-29 17:59:28.510918
updated_at2019-08-22 17:17:52.132281
descriptionA rust implementation of the One Euro Fitler, a fast and simple signal filter, based on the work of Géry Casiez, Nicolas and Daniel Vogel.
homepage
repositoryhttps://github.com/MichaelMauderer/one-euro-rs
max_upload_size
id87143
size219,034
Michael Mauderer (MichaelMauderer)

documentation

README

One Euro Filter

A fast and simple signal filter based on the work of Géry Casiez, Nicolas and Daniel Vogel. The original research paper describing the algorithm can be found in the ACM digital library (paywalled) and further information, as well as other implementations, are available on the original author's website.

Example

use one_euro_rs::OneEuroFilter;

// Set up the filter.
let frequency = 120.0;
let cutoff_min = 1.0;
let cutoff_d = 1.0;
let beta = 1.0;

let mut one_euro = OneEuroFilter::new(frequency, cutoff_min, cutoff_d, beta);

// Process some values.
one_euro.filter(1.0);
one_euro.filter(1.1);
one_euro.filter(0.9);
one_euro.filter(99999.9);
one_euro.filter(1.01);
one_euro.filter(1.04);
one_euro.filter(0.00);

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Commit count: 13

cargo fmt