![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
Maths.h@16:691649d8a3da, 2018-09-05 (annotated)
- Committer:
- gimohd
- Date:
- Wed Sep 05 07:50:27 2018 +0000
- Revision:
- 16:691649d8a3da
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gimohd | 16:691649d8a3da | 1 | #ifndef Maths_h |
gimohd | 16:691649d8a3da | 2 | #define Maths_h |
gimohd | 16:691649d8a3da | 3 | |
gimohd | 16:691649d8a3da | 4 | class Maths |
gimohd | 16:691649d8a3da | 5 | { |
gimohd | 16:691649d8a3da | 6 | private: |
gimohd | 16:691649d8a3da | 7 | |
gimohd | 16:691649d8a3da | 8 | |
gimohd | 16:691649d8a3da | 9 | public: |
gimohd | 16:691649d8a3da | 10 | static int comp(const void* elem1, const void* elem2); |
gimohd | 16:691649d8a3da | 11 | static float mean(float *samples, int n, int n2); |
gimohd | 16:691649d8a3da | 12 | static float median(float *samples, int n); |
gimohd | 16:691649d8a3da | 13 | static float stdev(float * samples, int n); |
gimohd | 16:691649d8a3da | 14 | static float meanNoOutliers(float data[] , int n); |
gimohd | 16:691649d8a3da | 15 | |
gimohd | 16:691649d8a3da | 16 | }; |
gimohd | 16:691649d8a3da | 17 | |
gimohd | 16:691649d8a3da | 18 | #endif |
gimohd | 16:691649d8a3da | 19 | |
gimohd | 16:691649d8a3da | 20 | |
gimohd | 16:691649d8a3da | 21 | |
gimohd | 16:691649d8a3da | 22 | |
gimohd | 16:691649d8a3da | 23 |