#include <math.h>
Go to the source code of this file.
Define Documentation
#define ADD_SAMPLE |
( |
|
m, |
|
|
|
s |
|
) |
| |
Value:(m.sum_of_samples += (float) (s), \
m.sum_of_squares += (float) (s) * (float) (s), \
++m.num_samples)
Definition at line 63 of file measure.h.
Value:((m).num_samples ? \
((float) ((m).sum_of_samples / (m).num_samples)) : \
0)
Definition at line 74 of file measure.h.
#define new_measurement |
( |
|
m | ) |
|
Value:((m).num_samples = 0, \
(m).sum_of_samples = 0, \
(m).sum_of_squares = 0)
Definition at line 86 of file measure.h.
#define number_of_samples |
( |
|
m | ) |
((m).num_samples) |
#define print_summary |
( |
|
string, |
|
|
|
measure |
|
) |
| |
#define standard_deviation |
( |
|
m | ) |
((float) sqrt (VARIANCE (m))) |
Value:(((m).num_samples > 1) ? \
((float) \
(((m).num_samples * (m).sum_of_squares - \
(m).sum_of_samples * (m).sum_of_samples) / \
(((m).num_samples - 1) * (m).num_samples))) : \
0)
Definition at line 115 of file measure.h.