SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Refactor PeakDetector to make it more user-friendly #81

Open sofian opened 1 year ago

sofian commented 1 year ago

The way PeakDetector is designed makes it a bit (and unnecessarily) cumbersome and counter-intuitive. One needs to now about the normal law and outliers. Instead, we could simply be able to send a signal directly to the PeakDetector which could be in charge of detecting peaks.

Furthermore, instead of using the principle of "outliers" it would be interesting to use a concept of "sensitvity" as a percentage (%) (0..1) For this we could use the "logit" function and calculate the n-stddev from a probability.