forked from dndubins/QuickStats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuickStats.h
More file actions
29 lines (25 loc) · 846 Bytes
/
QuickStats.h
File metadata and controls
29 lines (25 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* QuickStats.h - Library for quick descriptive statistics of an array samples[] of size m,
* assuming a normal distribution.
* Created by David Dubins, January 10th, 2016.
* Released into the public domain.
*/
#ifndef QuickStats_h
#define QuickStats_h
#include <Arduino.h>
class QuickStats {
public:
QuickStats();
~QuickStats();
float average(float samples[],int m);
float g_average(float samples[],int m);
float minimum(float samples[],int m);
float maximum(float samples[],int m);
float stdev(float samples[],int m);
float stderror(float samples[],int m);
float CV(float samples[],int m);
void bubbleSort(float A[],int len);
float fabs(float sample);
float median(float samples[],int m);
float mode(float samples[],int m,float epsilon);
};
#endif