33#if defined(Profile_RECURSES)
34#error Recursive header files inclusion detected in Profile.h
37#define Profile_RECURSES
47#include "DGtal/math/Statistic.h"
49#include "DGtal/base/Common.h"
135 template<
typename TValueFunctor = functors::Identity,
typename TValue =
double >
213 template <
typename Iterator>
214 void init( Iterator beginXvalues, Iterator endXvalues,
215 const bool storeValsInStats=
false );
227 void init(
const unsigned int nb,
const bool storeValsInStats=
false );
236 void addValue(
const unsigned int indexX,
const TValue value );
293 std::vector<Value> & y )
const;
371 template<
typename TValueFunctor,
typename TValue >
381#if !defined(BUILD_INLINE)
382#include "DGtal/math/Profile.ih"
391#undef Profile_RECURSES
Aim: This class can be used to represent a profile (PX, PY) defined from an input set of samples (Xi,...
void getProfile(std::vector< Value > &x, std::vector< Value > &y) const
Profile(const Profile &other)
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< Functor, Value, Value >))
std::vector< Statistic< Value > > * myStats
Profile(ProfileType type)
void addStatistic(const unsigned int indexX, const Statistic< Value > &stat)
std::vector< Value > * myXsamples
void init(const unsigned int nb, const bool storeValsInStats=false)
void addValue(const unsigned int indexX, const TValue value)
Profile & operator=(const Profile &other)
void selfDisplay(std::ostream &out) const
void init(Iterator beginXvalues, Iterator endXvalues, const bool storeValsInStats=false)
void setType(const ProfileType type)
Aim: This class processes a set of sample values for one variable and can then compute different stat...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: Defines a unary functor, which associates arguments to results.