2 #include "../law/normal_law.h" 34 assert(index >= 0 && index < 3);
36 return I18n::Message::RightIntegralFirstLegend;
39 return I18n::Message::FiniteIntegralLegend;
41 return I18n::Message::LeftIntegralSecondLegend;
45 assert(index >= 0 && index < 3);
60 assert(index >= 0 && index < 3);
78 void FiniteIntegralCalculation::compute(
int indexKnownElement) {
79 if (
m_law ==
nullptr) {
82 if (indexKnownElement == 2) {
84 double p = (1.0+m_result)/2.0;
85 m_upperBound = ((NormalLaw *)
m_law)->cumulativeDistributiveInverseForProbability(&p);
double upperBound() override
int numberOfEditableParameters() override
double finiteIntegralBetweenAbscissas(double a, double b) const
int numberOfParameters() override
virtual float parameterValueAtIndex(int index)=0
I18n::Message legendForParameterAtIndex(int index) override
double lowerBound() override
double parameterAtIndex(int index) override
virtual Type type() const =0
void setParameterAtIndex(double f, int index) override
FiniteIntegralCalculation()