33 #if defined(Profile_RECURSES)
34 #error Recursive header files inclusion detected in Profile.h
37 #define Profile_RECURSES
39 #if !defined Profile_h
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)
Profile & operator=(const Profile &other)
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)
void selfDisplay(std::ostream &out) const
void init(Iterator beginXvalues, Iterator endXvalues, const bool storeValsInStats=false)
void setType(const ProfileType type)
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 a unary functor, which associates arguments to results.