32 #if defined(Statistics_RECURSES)
33 #error Recursive header files inclusion detected in Statistics.h
36 #define Statistics_RECURSES
38 #if !defined Statistics_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/kernel/CCommutativeRing.h"
47 #include "DGtal/kernel/NumberTraits.h"
68 template <
typename TQuantity>
207 template <
class Iter>
312 template <
typename TQuantity>
323 #include "DGtal/math/Statistic.ih"
330 #undef Statistic_RECURSES
Aim: This class processes a set of sample values for one variable and can then compute different stat...
ConstIterator end() const
Container::const_iterator ConstIterator
Statistic operator+(const Statistic &other) const
unsigned int size() const
unsigned int samples() const
ConstIterator begin() const
Statistic(bool storeSample=false)
Statistic & operator=(const Statistic &other)
Statistic(const Statistic &other)
BOOST_CONCEPT_ASSERT((concepts::CCommutativeRing< Quantity >))
double unbiasedVariance() const
std::vector< Quantity > Container
Quantity operator[](unsigned int i) const
void selfDisplay(std::ostream &that_stream) const
Statistic & operator+=(const Statistic &other)
void addValues(Iter b, Iter e)
void addValue(Quantity v)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.