项目作者: MichaelMauderer

项目描述 :
Rust implementation of the One Euro Filter.
高级语言: Rust
项目地址: git://github.com/MichaelMauderer/one-euro-rs.git
创建时间: 2018-09-28T19:56:44Z
项目社区:https://github.com/MichaelMauderer/one-euro-rs

开源协议:MIT License

下载


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

  1. use one_euro_rs::OneEuroFilter;
  2. // Set up the filter.
  3. let frequency = 120.0;
  4. let cutoff_min = 1.0;
  5. let cutoff_d = 1.0;
  6. let beta = 1.0;
  7. let mut one_euro = OneEuroFilter::new(frequency, cutoff_min, cutoff_d, beta);
  8. // Process some values.
  9. one_euro.filter(1.0);
  10. one_euro.filter(1.1);
  11. one_euro.filter(0.9);
  12. one_euro.filter(99999.9);
  13. one_euro.filter(1.01);
  14. one_euro.filter(1.04);
  15. 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.