#include <histogram.h>
Public Member Functions | |
void | Add (const ScalarType v) |
ScalarType | Avg () |
void | Clear () |
ScalarType | Cnt () const |
void | DirtyCheck () |
Distribution () | |
ScalarType | Max () const |
ScalarType | Min () const |
ScalarType | Percentile (ScalarType perc) |
ScalarType | RMS () |
Returns the Root Mean Square of the data. | |
ScalarType | StandardDeviation () |
Returns the standard deviation of the data. | |
ScalarType | Sum () |
ScalarType | Variance () |
Returns the variance of the data. the average of the squares less the square of the average. | |
Private Attributes | |
double | avg |
bool | dirty |
double | max_v |
double | min_v |
double | rms |
double | sqrdAvg |
double | sqrdValSum |
double | valSum |
std::vector< ScalarType > | vec |
Definition at line 37 of file histogram.h.
vcg::Distribution< ScalarType >::Distribution | ( | ) | [inline] |
Definition at line 53 of file histogram.h.
void vcg::Distribution< ScalarType >::Add | ( | const ScalarType | v | ) | [inline] |
Definition at line 63 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Avg | ( | ) | [inline] |
Definition at line 76 of file histogram.h.
void vcg::Distribution< ScalarType >::Clear | ( | ) | [inline] |
Definition at line 55 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Cnt | ( | ) | const [inline] |
Definition at line 73 of file histogram.h.
void vcg::Distribution< ScalarType >::DirtyCheck | ( | ) | [inline] |
Definition at line 87 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Max | ( | ) | const [inline] |
Definition at line 72 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Min | ( | ) | const [inline] |
Definition at line 71 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Percentile | ( | ScalarType | perc | ) | [inline] |
Definition at line 105 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::RMS | ( | ) | [inline] |
Returns the Root Mean Square of the data.
Definition at line 78 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::StandardDeviation | ( | ) | [inline] |
Returns the standard deviation of the data.
Definition at line 85 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Sum | ( | ) | [inline] |
Definition at line 75 of file histogram.h.
ScalarType vcg::Distribution< ScalarType >::Variance | ( | ) | [inline] |
Returns the variance of the data. the average of the squares less the square of the average.
Definition at line 82 of file histogram.h.
double vcg::Distribution< ScalarType >::avg [private] |
Definition at line 44 of file histogram.h.
bool vcg::Distribution< ScalarType >::dirty [private] |
Definition at line 41 of file histogram.h.
double vcg::Distribution< ScalarType >::max_v [private] |
Definition at line 48 of file histogram.h.
double vcg::Distribution< ScalarType >::min_v [private] |
Definition at line 47 of file histogram.h.
double vcg::Distribution< ScalarType >::rms [private] |
Definition at line 46 of file histogram.h.
double vcg::Distribution< ScalarType >::sqrdAvg [private] |
Definition at line 45 of file histogram.h.
double vcg::Distribution< ScalarType >::sqrdValSum [private] |
Definition at line 43 of file histogram.h.
double vcg::Distribution< ScalarType >::valSum [private] |
Definition at line 42 of file histogram.h.
std::vector<ScalarType> vcg::Distribution< ScalarType >::vec [private] |
Definition at line 40 of file histogram.h.