OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes
StatBase Class Reference

#include <stat.hh>

Public Member Functions

 StatBase ()
template<typename T , class D >
void VisitState (const ImageStateImpl< T, D > &isi)
void VisitFunction (const Function &f)
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_

Detailed Description

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)

Definition at line 49 of file stat.hh.


Constructor & Destructor Documentation

StatBase ( )
inline

Definition at line 52 of file stat.hh.


Member Function Documentation

static String GetAlgorithmName ( )
inlinestatic

Definition at line 73 of file stat.hh.

Vec3 GetCenterOfMass ( ) const
inline

Definition at line 94 of file stat.hh.

Real GetKurtosis ( ) const
inline

Definition at line 93 of file stat.hh.

Real GetMaximum ( ) const
inline

Definition at line 82 of file stat.hh.

Point GetMaximumPosition ( ) const
inline

Definition at line 83 of file stat.hh.

Real GetMean ( ) const
inline

Definition at line 77 of file stat.hh.

Real GetMinimum ( ) const
inline

Definition at line 79 of file stat.hh.

Point GetMinimumPosition ( ) const
inline

Definition at line 80 of file stat.hh.

Real GetRootMeanSquare ( ) const
inline

Definition at line 91 of file stat.hh.

Real GetSkewness ( ) const
inline

Definition at line 92 of file stat.hh.

Real GetStandardDeviation ( ) const
inline

Definition at line 89 of file stat.hh.

Real GetSum ( ) const
inline

Definition at line 85 of file stat.hh.

Real GetVariance ( ) const
inline

Definition at line 87 of file stat.hh.

void SetMaximum ( Real  m)
inline

Definition at line 84 of file stat.hh.

void SetMean ( Real  m)
inline

Definition at line 78 of file stat.hh.

void SetMinimum ( Real  m)
inline

Definition at line 81 of file stat.hh.

void SetStandardDeviation ( Real  s)
inline

Definition at line 90 of file stat.hh.

void SetSum ( Real  s)
inline

Definition at line 86 of file stat.hh.

void SetVariance ( Real  v)
inline

Definition at line 88 of file stat.hh.

void VisitFunction ( const Function f)
void VisitState ( const ImageStateImpl< T, D > &  isi)

Field Documentation

Vec3 center_of_mass_
protected

Definition at line 100 of file stat.hh.

Real kurtosis_
protected

Definition at line 99 of file stat.hh.

Real max_
protected

Definition at line 97 of file stat.hh.

Point maxpos_
protected

Definition at line 98 of file stat.hh.

Real mean_
protected

Definition at line 96 of file stat.hh.

Real min_
protected

Definition at line 97 of file stat.hh.

Point minpos_
protected

Definition at line 98 of file stat.hh.

Real rms_
protected

Definition at line 99 of file stat.hh.

Real skewness_
protected

Definition at line 99 of file stat.hh.

Real std_dev_
protected

Definition at line 96 of file stat.hh.

Real sum_
protected

Definition at line 97 of file stat.hh.

Real var_
protected

Definition at line 96 of file stat.hh.


The documentation for this class was generated from the following file: