GranOO 3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Loading...
Searching...
No Matches
GranOO3::Math::Stat Class Reference

#include <Stat.hpp>

Public Member Functions

 Stat ()
 ~Stat ()
 Stat (const Stat &)
Stat & operator= (const Stat &)
void update ()
size_t Size () const
void add (double)
void clear ()

Static Public Member Functions

template<typename T>
static void All (const T &, double &ave, double &std, double &min, double &max)
template<typename T>
static void AverageStdDev (const T &, double &ave, double &std)
template<typename T>
static double Average (const T &)
template<typename T>
static double StdDev (const T &)
template<typename T>
static double Max (const T &)
template<typename T>
static double Min (const T &)
template<typename T>
static double Sum (const T &)

Private Attributes

std::vector< double > _value
double _ave
double _std
double _min
double _max

Constructor & Destructor Documentation

◆ Stat() [1/2]

GranOO3::Math::Stat::Stat ( )

◆ ~Stat()

GranOO3::Math::Stat::~Stat ( )

◆ Stat() [2/2]

GranOO3::Math::Stat::Stat ( const Stat & s)

Member Function Documentation

◆ add()

void GranOO3::Math::Stat::add ( double val)

◆ All()

template<typename T>
void GranOO3::Math::Stat::All ( const T & container,
double & ave,
double & std,
double & min,
double & max )
inlinestatic

◆ Average()

template<typename T>
double GranOO3::Math::Stat::Average ( const T & container)
inlinestatic

◆ AverageStdDev()

template<typename T>
void GranOO3::Math::Stat::AverageStdDev ( const T & container,
double & ave,
double & std )
static

◆ clear()

void GranOO3::Math::Stat::clear ( )

◆ Max()

template<typename T>
double GranOO3::Math::Stat::Max ( const T & container)
inlinestatic

◆ Min()

template<typename T>
double GranOO3::Math::Stat::Min ( const T & container)
inlinestatic

◆ operator=()

Stat & GranOO3::Math::Stat::operator= ( const Stat & s)

◆ Size()

size_t GranOO3::Math::Stat::Size ( ) const

◆ StdDev()

template<typename T>
double GranOO3::Math::Stat::StdDev ( const T & container)
inlinestatic

◆ Sum()

template<typename T>
double GranOO3::Math::Stat::Sum ( const T & container)
inlinestatic

◆ update()

void GranOO3::Math::Stat::update ( )

Member Data Documentation

◆ _ave

double GranOO3::Math::Stat::_ave
private

◆ _max

double GranOO3::Math::Stat::_max
private

◆ _min

double GranOO3::Math::Stat::_min
private

◆ _std

double GranOO3::Math::Stat::_std
private

◆ _value

std::vector<double> GranOO3::Math::Stat::_value
private

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