32 #include "DGtal/base/Common.h"
33 #include "ConfigTest.h"
34 #include "DGtalCatch.h"
35 #include "DGtal/helpers/StdDefs.h"
36 #include "DGtal/math/MultiStatistics.h"
40 using namespace DGtal;
49 for(
unsigned int i = 0; i< 100; i++)
51 for(
unsigned int j = 0; j<= i; j++)
58 SECTION(
"Testing multiStatics estimated quantities without saving the data")
60 unsigned int val = 50;
71 for(
unsigned int i = 0; i< 100; i++)
73 for(
unsigned int j = 0; j<= i; j++)
80 SECTION(
"Testing multiStatics estimated quantities with saving the data")
82 unsigned int val = 12;
96 for(
unsigned int i = 0; i< 100; i++)
98 std::vector<double> vectValues;
99 for(
unsigned int j = 0; j<= i; j++)
101 vectValues.push_back(j);
103 stats3.
addValues(i, vectValues.begin(), vectValues.end());
107 SECTION(
"Testing feature math of MultiStatistics with saving data")
109 unsigned int val = 12;
Aim: This class stores a set of sample values for several variables and can then compute different st...
double max(const unsigned int k) const
double mean(const unsigned int k) const
void addValue(unsigned int k, double v)
void addValues(const unsigned int k, Iter b, Iter e)
double median(const unsigned int k)
double min(const unsigned int k) const
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("Testing MultiStatistics")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))