OpenStructure
|
#include <stat.hh>
Public Member Functions | |
StatBase () | |
template<typename T , class D > | |
void | VisitState (const ImageStateImpl< T, D > &isi) |
Real | GetMean () const |
void | SetMean (Real m) |
Real | GetMinimum () const |
Point | GetMinimumPosition () const |
void | SetMinimum (Real m) |
Real | GetMaximum () const |
Point | GetMaximumPosition () const |
void | SetMaximum (Real m) |
Real | GetSum () const |
void | SetSum (Real s) |
Real | GetVariance () const |
void | SetVariance (Real v) |
Real | GetStandardDeviation () const |
void | SetStandardDeviation (Real s) |
Real | GetRootMeanSquare () const |
Real | GetSkewness () const |
Real | GetKurtosis () const |
Vec3 | GetCenterOfMass () const |
Static Public Member Functions | |
static String | GetAlgorithmName () |
Protected Attributes | |
Real | mean_ |
Real | var_ |
Real | std_dev_ |
Real | sum_ |
Real | min_ |
Real | max_ |
Point | maxpos_ |
Point | minpos_ |
Real | rms_ |
Real | skewness_ |
Real | kurtosis_ |
Vec3 | center_of_mass_ |
collect statistical information about data
Since this algorithm is implemented as a combined image stage visitor and algorithm, the main workhorse is this class StatBase, which will act as the parent class of the actual algorithm class, Stat
Mean value, variance and standard deviation are calculated based on the one pass algorithm by Welford et al.: B. P. Welford (1962)."Note on a method for calculating corrected sums of squares and products". Technometrics 4(3):419–420 The calculation of the higher order central moments is implemented according to Terriberry: Terriberry, Timothy B. (2007), Computing Higher-Order Moments Online (http://people.xiph.org/~tterribe/notes/homs.html)
void VisitState | ( | const ImageStateImpl< T, D > & | isi | ) |