Affordable Smart Wheelchair / wheelchaircontrol1-6

Dependencies:   QEI2 PID IMU6050Ver11 Watchdog VL53L1X_Filter ros_lib_kinetic

Dependents:   Version1-6 Version1-7

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Statistics.h Source File

Statistics.h

00001 #ifndef STATISTICS_h               
00002 #define STATISTICS_h              
00003  
00004 #include "mbed.h"
00005 
00006 class Statistics 
00007 { 
00008 public: 
00009     //Defining default constructor
00010     Statistics(int* Input, double dataLength, int firstDataPointIn = 0); 
00011     //Defining methods
00012     double stdev();
00013     double mean();
00014     
00015   private:
00016    int* data;                                       //pointer to data
00017    double dataLength;
00018    int firstDataPoint;
00019 
00020     
00021 };
00022 
00023 #endif   //STATISTICS_h