1 #ifndef PROBABILITE_LAW_H 2 #define PROBABILITE_LAW_H 6 #include "../../constant.h" 7 #include "../../shared/curve_view_range.h" 8 #include "../../i18n.h" 22 virtual ~Law() =
default;
23 virtual I18n::Message
title() = 0;
virtual bool isContinuous() const =0
virtual I18n::Message parameterNameAtIndex(int index)=0
virtual I18n::Message title()=0
virtual void setParameterAtIndex(float f, int index)=0
double finiteIntegralBetweenAbscissas(double a, double b) const
static constexpr float k_displayBottomMarginRatio
virtual double rightIntegralInverseForProbability(double *probability)
virtual int numberOfParameter()=0
virtual float parameterValueAtIndex(int index)=0
virtual double cumulativeDistributiveInverseForProbability(double *probability)
static constexpr double k_maxProbability
virtual Type type() const =0
static constexpr int LargeNumberOfSignificantDigits
static constexpr float k_displayTopMarginRatio
virtual float evaluateAtAbscissa(float x) const =0
virtual double cumulativeDistributiveFunctionAtAbscissa(double x) const
virtual I18n::Message parameterDefinitionAtIndex(int index)=0
double rightIntegralFromAbscissa(double x) const
virtual double evaluateAtDiscreteAbscissa(int k) const
float xGridUnit() override
static constexpr float k_displayRightMarginRatio
static constexpr float k_displayLeftMarginRatio
static constexpr int k_maxNumberOfOperations
virtual bool authorizedValueAtIndex(float x, int index) const =0