Population
Image processing library in C++
Classes

Distribution In -> Distribution Out (derivate, integral, computedStaticticsFromRealRealizations,...) More...

Classes

class  pop::Statistics
 Mathematical analysis of function with symbolic link (mathematics) oriented stastistics. More...
 

Detailed Description

Distribution In -> Distribution Out (derivate, integral, computedStaticticsFromRealRealizations,...)

Before to start with this class of algorithm, you should read the documentation of the class Distribution since this class acts on this data-structure. A classical calculus is the derivate:

DistributionExpression f("x^2");//f(x)=x
for(int i =0;i<4;i++)
std::cout<<f(i)<<" ";
std::cout<<std::endl;
DistributionRegularStep f_deri = pop::Statistics::derivate(f,0,10);//now f(x)=2*x
for(int i =0;i<4;i++)
std::cout<<f_deri(i)<<" ";
std::cout<<std::endl;

This code produces this output:
0 1 4 9
0.01 2.01 4.01 6.01