votca 2024.2-dev
Loading...
Searching...
No Matches
votca::tools::Average< T > Class Template Reference

#include <average.h>

Collaboration diagram for votca::tools::Average< T >:

Public Member Functions

void Process (const T &value)
 
void Clear ()
 
template<typename iterator_type >
void ProcessRange (const iterator_type &begin, const iterator_type &end)
 
CalcDev () const
 
CalcSig2 () const
 
const T & getAvg () const
 
const T getM2 () const
 
size_t getN () const
 

Private Attributes

size_t n_ = 0
 
av_ = 0
 
m2_ = 0
 

Detailed Description

template<typename T>
class votca::tools::Average< T >

Definition at line 28 of file average.h.

Member Function Documentation

◆ CalcDev()

template<typename T >
T votca::tools::Average< T >::CalcDev ( ) const

Definition at line 71 of file average.h.

◆ CalcSig2()

template<typename T >
T votca::tools::Average< T >::CalcSig2 ( ) const

Definition at line 76 of file average.h.

◆ Clear()

template<typename T >
void votca::tools::Average< T >::Clear ( )
inline

Definition at line 55 of file average.h.

◆ getAvg()

template<typename T >
const T & votca::tools::Average< T >::getAvg ( ) const

Definition at line 83 of file average.h.

◆ getM2()

template<typename T >
const T votca::tools::Average< T >::getM2 ( ) const

Definition at line 88 of file average.h.

◆ getN()

template<typename T >
size_t votca::tools::Average< T >::getN ( ) const

Definition at line 95 of file average.h.

◆ Process()

template<typename T >
void votca::tools::Average< T >::Process ( const T & value)
inline

Definition at line 48 of file average.h.

◆ ProcessRange()

template<typename T >
template<typename iterator_type >
void votca::tools::Average< T >::ProcessRange ( const iterator_type & begin,
const iterator_type & end )

Definition at line 63 of file average.h.

Member Data Documentation

◆ av_

template<typename T >
T votca::tools::Average< T >::av_ = 0
private

Definition at line 43 of file average.h.

◆ m2_

template<typename T >
T votca::tools::Average< T >::m2_ = 0
private

Definition at line 44 of file average.h.

◆ n_

template<typename T >
size_t votca::tools::Average< T >::n_ = 0
private

Definition at line 42 of file average.h.


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