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
Statistics/Statistics.h@35:5a2fed4c2e9f, 2019-07-09 (annotated)
- Committer:
- JesiMiranda
- Date:
- Tue Jul 09 21:18:01 2019 +0000
- Revision:
- 35:5a2fed4c2e9f
- Parent:
- Statistics/statistics.h@31:06f2362caf12
finished commenting on the .cpp file and changed the statistics library name
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JesiMiranda | 35:5a2fed4c2e9f | 1 | #ifndef STATISTICS_h |
JesiMiranda | 35:5a2fed4c2e9f | 2 | #define STATISTICS_h |
jvfausto | 27:da718b990837 | 3 | |
jvfausto | 27:da718b990837 | 4 | #include "mbed.h" |
jvfausto | 27:da718b990837 | 5 | |
JesiMiranda | 35:5a2fed4c2e9f | 6 | class Statistics |
jvfausto | 27:da718b990837 | 7 | { |
jvfausto | 27:da718b990837 | 8 | public: |
jvfausto | 28:6d6bd8ad04dc | 9 | //Defining default constructor |
JesiMiranda | 35:5a2fed4c2e9f | 10 | Statistics(int* Input, double dataLength, int firstDataPointIn = 0); |
jvfausto | 28:6d6bd8ad04dc | 11 | //Defining methods |
jvfausto | 27:da718b990837 | 12 | double stdev(); |
jvfausto | 27:da718b990837 | 13 | double mean(); |
jvfausto | 27:da718b990837 | 14 | |
jvfausto | 27:da718b990837 | 15 | private: |
jvfausto | 28:6d6bd8ad04dc | 16 | int* data; //pointer to data |
t1jain | 31:06f2362caf12 | 17 | double dataLength; |
jvfausto | 28:6d6bd8ad04dc | 18 | int firstDataPoint; |
jvfausto | 27:da718b990837 | 19 | |
jvfausto | 27:da718b990837 | 20 | |
jvfausto | 27:da718b990837 | 21 | }; |
jvfausto | 27:da718b990837 | 22 | |
JesiMiranda | 35:5a2fed4c2e9f | 23 | #endif //STATISTICS_h |