32#include "DGtal/base/Common.h" 
   33#include "ConfigTest.h" 
   34#include "DGtalCatch.h" 
   35#include "DGtal/helpers/StdDefs.h" 
   36#include "DGtal/math/Profile.h"  
   47  double operator()(
const double &a)
 const {
 
   58  SECTION(
"Testing basic add of Profile")
 
   65      std::vector<double> x;
 
   66      std::vector<double> y;
 
   68      REQUIRE( x[3] == Approx(log(4)) );
 
   69      REQUIRE( y[3] == Approx(log(10.0)) );
 
   75  SECTION(
"Testing Profile (with max/median)")
 
   84      std::vector<double> x;
 
   85      std::vector<double> y;
 
 
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
 
void addValue(const unsigned int indexX, const TValue value)
 
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.
 
TEST_CASE("Testing Profile")
 
SECTION("Testing constant forward iterators")
 
REQUIRE(domain.isInside(aPoint))