31 #if defined(Histogram_RECURSES)
32 #error Recursive header files inclusion detected in Histogram.h
33 #else // defined(Histogram_RECURSES)
35 #define Histogram_RECURSES
37 #if !defined Histogram_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/Clone.h"
46 #include "DGtal/math/CBinner.h"
47 #include "DGtal/kernel/CEuclideanRing.h"
48 #include "DGtal/math/Statistic.h"
63 template <
typename TQuantity>
143 template <
typename TQuantity,
144 typename TBinner = RegularBinner< TQuantity > >
157 typedef typename Binner::Bin
Bin;
217 template <
typename TInputIterator>
218 void addValues( TInputIterator it, TInputIterator itE );
259 double pdf(
Bin b )
const;
265 double cdf(
Bin b )
const;
329 template <
typename TQuantity,
typename TBinner>
338 #include "DGtal/math/Histogram.ih"
343 #endif // !defined Histogram_h
345 #undef Histogram_RECURSES
346 #endif // else defined(Histogram_RECURSES)
BOOST_STATIC_ASSERT((boost::is_same< TQuantity, typename TBinner::Quantity >::value))
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
std::vector< Size > Container
RegularBinner< Quantity > Self
void addValues(TInputIterator it, TInputIterator itE)
Container::const_iterator ConstIterator
const Binner * myBinner
The binner that places quantities into a bin.
boost::uint32_t uint32_t
unsigned 32-bit integer.
void selfDisplay(std::ostream &out) const
Aim: The traits class for all models of Cinteger.
Aim: Represents a typical histogram in statistics, which is a discrete estimate of the probability di...
void addValue(Quantity q)
HalfEdgeDataStructure::Size Size
Aim: This class processes a set of sample values for one variable and can then compute different stat...
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Histogram< Quantity, Binner > Self
BOOST_CONCEPT_ASSERT((concepts::CEuclideanRing< TQuantity >))
DGtal is the top-level namespace which contains all DGtal functions and types.
Histogram & operator=(const Histogram &other)
Aim: Represents an elementary functor that partitions quantities into regular intervals,...
RegularBinner(const Quantity &min, const Quantity &max, Bin n)
Size accumulation(Bin b) const
Bin operator()(const Quantity &q) const
Aim: Defines the mathematical concept equivalent to a unitary commutative ring with a division operat...
boost::uint64_t uint64_t
unsigned 64-bit integer.
void init(Clone< Binner > binner)
Aim: Represents an object that places a quantity into a bin, i.e. a functor that associates a natural...
Bin bin(Quantity q) const
Container myCumulativeHistogram
The cumulative histogram data.
Container myHistogram
The histogram data.