Updated with Statistics Library

Dependencies:   QEI2 chair_BNO055 PID Watchdog VL53L1X_Filter ros_lib_kinetic

Committer:
t1jain
Date:
Fri Jun 28 23:52:23 2019 +0000
Revision:
28:e01253eb6c6f
Parent:
27:da718b990837
Updated with Statistics Library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jvfausto 27:da718b990837 1 #ifndef statistics_h
jvfausto 27:da718b990837 2 #define statistics_h
jvfausto 27:da718b990837 3
jvfausto 27:da718b990837 4 #include "mbed.h"
jvfausto 27:da718b990837 5
jvfausto 27:da718b990837 6 class statistics
jvfausto 27:da718b990837 7 {
jvfausto 27:da718b990837 8 public:
jvfausto 27:da718b990837 9
jvfausto 27:da718b990837 10 statistics(int* Input, int dataLength, int firstDataPoint = 0);
jvfausto 27:da718b990837 11 double stdev();
jvfausto 27:da718b990837 12 double mean();
jvfausto 27:da718b990837 13
jvfausto 27:da718b990837 14 private:
jvfausto 27:da718b990837 15 int* data;
jvfausto 27:da718b990837 16 int dataLength;
t1jain 28:e01253eb6c6f 17 int firstDataPoint;
jvfausto 27:da718b990837 18
jvfausto 27:da718b990837 19
jvfausto 27:da718b990837 20 };
jvfausto 27:da718b990837 21
jvfausto 27:da718b990837 22 #endif
jvfausto 27:da718b990837 23