OpenStructure
Public Member Functions
StatAccumulator< MAX_MOMENT, DATATYPE > Class Template Reference

#include <stat_accumulator.hh>

Public Member Functions

 StatAccumulator ()
 
 StatAccumulator (DATATYPE val, Real w=1.0)
 
void operator() (DATATYPE val, Real w=1.0)
 
StatAccumulator< MAX_MOMENT, DATATYPE > operator+ (const StatAccumulator< MAX_MOMENT, DATATYPE > &acc2) const
 
StatAccumulator< MAX_MOMENT, DATATYPE > & operator+= (const StatAccumulator< MAX_MOMENT, DATATYPE > &acc)
 
Real GetNumSamples () const
 
DATATYPE GetMaximum () const
 
DATATYPE GetMinimum () const
 
Real GetWeight () const
 
DATATYPE GetMoment (unsigned int i) const
 
DATATYPE GetMean () const
 
DATATYPE GetSum () const
 
DATATYPE GetVariance () const
 
DATATYPE GetStandardDeviation () const
 
DATATYPE GetRootMeanSquare () const
 
DATATYPE GetSkewness () const
 
DATATYPE GetKurtosis () const
 

Detailed Description

template<unsigned int MAX_MOMENT = 4, typename DATATYPE = Real>
class ost::img::alg::StatAccumulator< MAX_MOMENT, DATATYPE >

Definition at line 45 of file stat_accumulator.hh.

Constructor & Destructor Documentation

◆ StatAccumulator() [1/2]

StatAccumulator ( )
inline

Definition at line 48 of file stat_accumulator.hh.

◆ StatAccumulator() [2/2]

StatAccumulator ( DATATYPE  val,
Real  w = 1.0 
)
inline

Definition at line 63 of file stat_accumulator.hh.

Member Function Documentation

◆ GetKurtosis()

DATATYPE GetKurtosis ( ) const
inline

Definition at line 228 of file stat_accumulator.hh.

◆ GetMaximum()

DATATYPE GetMaximum ( ) const
inline

Definition at line 153 of file stat_accumulator.hh.

◆ GetMean()

DATATYPE GetMean ( ) const
inline

Definition at line 179 of file stat_accumulator.hh.

◆ GetMinimum()

DATATYPE GetMinimum ( ) const
inline

Definition at line 158 of file stat_accumulator.hh.

◆ GetMoment()

DATATYPE GetMoment ( unsigned int  i) const
inline

Definition at line 168 of file stat_accumulator.hh.

◆ GetNumSamples()

Real GetNumSamples ( ) const
inline

Definition at line 148 of file stat_accumulator.hh.

◆ GetRootMeanSquare()

DATATYPE GetRootMeanSquare ( ) const
inline

Definition at line 208 of file stat_accumulator.hh.

◆ GetSkewness()

DATATYPE GetSkewness ( ) const
inline

Definition at line 216 of file stat_accumulator.hh.

◆ GetStandardDeviation()

DATATYPE GetStandardDeviation ( ) const
inline

Definition at line 203 of file stat_accumulator.hh.

◆ GetSum()

DATATYPE GetSum ( ) const
inline

Definition at line 187 of file stat_accumulator.hh.

◆ GetVariance()

DATATYPE GetVariance ( ) const
inline

Definition at line 192 of file stat_accumulator.hh.

◆ GetWeight()

Real GetWeight ( ) const
inline

Definition at line 163 of file stat_accumulator.hh.

◆ operator()()

void operator() ( DATATYPE  val,
Real  w = 1.0 
)
inline

Definition at line 80 of file stat_accumulator.hh.

◆ operator+()

StatAccumulator<MAX_MOMENT,DATATYPE> operator+ ( const StatAccumulator< MAX_MOMENT, DATATYPE > &  acc2) const
inline

Definition at line 85 of file stat_accumulator.hh.

◆ operator+=()

StatAccumulator<MAX_MOMENT,DATATYPE>& operator+= ( const StatAccumulator< MAX_MOMENT, DATATYPE > &  acc)
inline

Definition at line 92 of file stat_accumulator.hh.


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