SignalK / signalk-derived-data

Generates deltas for values derived from signalk values
Apache License 2.0
18 stars 30 forks source link

Feature request. wind speed smooth with moving average #130

Open petsicola opened 5 months ago

petsicola commented 5 months ago

Create the posibility of create moving average values. wind angle has very different values... I have created a node red with moving average values to smooth values. Do you think that this is interesting for you? a lot of derived data values calculated are derived of wind speed and wind angle and smooth values gives more consistent values.

mcdonaldajr commented 5 months ago

I'd be interested in a generic smoothing model, applicable to all values. I have some recorded GPS data that jumps around occasionally. I can only assume this is a bit going wrong somewhere. If two consecutive GPS readings show location a few hundred meters apart, I would want to ignore the unusual reading.

tkurki commented 5 months ago

I think a separate generic plugin for aggregates like moving average/min/max and particularly angular quantities (where the average between -170 and 170 degrees is not zero) would be a much better solution.