fdhwlib
2.0.25
|
#include <statistics.h>
Provide statistics for a time series.
The statistic is described by the minimum and maximum value, the mean value and the variance of the series.
Definition at line 23 of file statistics.h.
statistics::statistics | ( | ) |
statistics::~statistics | ( | ) |
void statistics::add | ( | statistics * | stat | ) |
Add another statistical set.
unsigned short statistics::calcMax | ( | unsigned short * | data, |
int | n | ||
) |
float statistics::calcMean | ( | unsigned short * | data, |
int | n | ||
) |
unsigned short statistics::calcMin | ( | unsigned short * | data, |
int | n | ||
) |
float statistics::calcVariance | ( | unsigned short * | data, |
int | n | ||
) |
void statistics::display | ( | FILE * | fout | ) |
void statistics::minus | ( | statistics * | stat | ) |
Substract another statistical set.
void statistics::of | ( | unsigned short * | data, |
int | n | ||
) |
Calculate the statistics a time series defined by n values of type unsigned short.
void statistics::of | ( | statistics * | stat, |
int | n | ||
) |
Calculate the statistics of a time series that has been analysed in n segments of equal length.
statistics statistics::operator= | ( | statistics | zuw | ) | [inline] |
void statistics::setMask | ( | unsigned short | mask | ) | [inline] |
Set mask to select the data and remove possible flags.
Definition at line 56 of file statistics.h.
References mask.
unsigned short statistics::mask [private] |
unsigned short statistics::max |
Definition at line 71 of file statistics.h.
Referenced by operator=().
float statistics::mean |
Definition at line 72 of file statistics.h.
Referenced by operator=().
unsigned short statistics::min |
Definition at line 70 of file statistics.h.
Referenced by operator=().
float statistics::variance |
Definition at line 73 of file statistics.h.
Referenced by operator=().