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" 40 using namespace DGtal;
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;
TEST_CASE("Testing Profile")
void setType(const ProfileType type)
void addValue(const unsigned int indexX, const TValue value)
REQUIRE(domain.isInside(aPoint))
void getProfile(std::vector< Value > &x, std::vector< Value > &y) const
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: This class can be used to represent a profile (PX, PY) defined from an input set of samples (Xi,...
void init(Iterator beginXvalues, Iterator endXvalues, const bool storeValsInStats=false)
SECTION("Testing constant forward iterators")