32 #if defined(Statistics_RECURSES)
33 #error Recursive header files inclusion detected in Statistics.h
34 #else // defined(Statistics_RECURSES)
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"
328 #endif // !defined Statistic_h
330 #undef Statistic_RECURSES
331 #endif // else defined(Statistic_RECURSES)
unsigned int samples() const
ConstIterator begin() const
void addValues(Iter b, Iter e)
std::vector< Quantity > Container
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Statistic operator+(const Statistic &other) const
Aim: This class processes a set of sample values for one variable and can then compute different stat...
ConstIterator end() const
Statistic & operator=(const Statistic &other)
unsigned int size() const
Statistic(const Statistic &other)
double unbiasedVariance() const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Statistic & operator+=(const Statistic &other)
BOOST_CONCEPT_ASSERT((concepts::CCommutativeRing< Quantity >))
Container::const_iterator ConstIterator
Quantity operator[](unsigned int i) const
void addValue(Quantity v)
void selfDisplay(std::ostream &that_stream) const
Statistic(bool storeSample=false)