Log In  

Cart #42459 | 2017-07-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

I needed a filter for something on another project, so I implemented the very cool 1 euro filter from:
http://cristal.univ-lille.fr/~casiez/1euro/

The parameters are tuned in this gif to make it very obvious, but its controllable.

The code for the filter is at the top of the cart, if you want to see the source. It has a :filter() method that can filter the incoming noisy value.

In the cart: if you click it draws lines. Green line is the input signal, yellow is the filtered signal.

Based on stdlib.p8, built with @stevelavieties.

P#42460 2017-07-13 23:39 ( Edited 2017-07-14 03:49)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 02:35:46 | 0.041s | Q:16