Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
damellis opened this issue Apr 13, 2016 · 1 comment

Comments

@damellis
Copy link

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?

@cousteaulecommandant
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants