ArduinoCore-API icon indicating copy to clipboard operation
ArduinoCore-API copied to clipboard

Functions for taking the mean and standard deviation of an array of numbers?

Open damellis opened this issue 9 years ago • 1 comments

I've been thinking about how to help Arduino users do more sophisticated analysis of their sensor data and this seems like a simple thing that could help with a bunch of things. There are some existing libraries for this (e.g. http://playground.arduino.cc/Main/Average) but it seems like mean() and standardDeviation() are common enough to be worth including in the core. What do you think?

damellis avatar Apr 13 '16 21:04 damellis

Personally I don't think they would, but maybe they would make sense as part of a statistical library (maybe a standard library with official support rather than a third party one; I don't know if the Arduino developers would be up for that.) I think those two functions are simply too easy to implement for individual projects (just a for loop and a division) and not common enough to be included in the main Arduino core, which aims to be small.

cousteaulecommandant avatar Jun 16 '19 13:06 cousteaulecommandant