finished commenting on the .cpp file and changed the statistics library name
Dependencies: QEI2 PID IMU6050Ver11 Watchdog VL53L1X_Filter ros_lib_kinetic
Dependents: Version1-3 Version1-5
Diff: Statistics/Statistics.h
- Revision:
- 35:5a2fed4c2e9f
- Parent:
- 31:06f2362caf12
diff -r b89967adc86c -r 5a2fed4c2e9f Statistics/Statistics.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Statistics/Statistics.h Tue Jul 09 21:18:01 2019 +0000 @@ -0,0 +1,23 @@ +#ifndef STATISTICS_h +#define STATISTICS_h + +#include "mbed.h" + +class Statistics +{ +public: + //Defining default constructor + Statistics(int* Input, double dataLength, int firstDataPointIn = 0); + //Defining methods + double stdev(); + double mean(); + + private: + int* data; //pointer to data + double dataLength; + int firstDataPoint; + + +}; + +#endif //STATISTICS_h \ No newline at end of file