Go Down

Topic: Simple statistics library (Read 1 time) previous topic - next topic

robtillaart

Just added a simple statistics library to the playground. See http://
http://www.arduino.cc/playground/Main/Statistics


The lib calculates the average and stdev of a set of data(floats). It has a simple interface consisting of only six functions. An example sketch is added on the playground.

All comments are welcome,

Rob
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

SlashV

You may want to use an unbiased stddev? i.e. use n-1 in the divisor.
-- Jaap

robtillaart

Added the unbiased_stddev(), minimum() and maximum()
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

robtillaart

Today I received an updated version of the statistics library from Gil Ross, one that is numerically more stable. Details see - http://www.arduino.cc/playground/Main/Statistics -


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy