Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <law.h>
Public Types | |
enum | Type : uint8_t { Type::Binomial, Type::Uniform, Type::Exponential, Type::Normal, Type::Poisson } |
Public Types inherited from Shared::CurveViewRange | |
enum | Axis { Axis::X, Axis::Y } |
Public Member Functions | |
Law () | |
virtual | ~Law ()=default |
virtual I18n::Message | title ()=0 |
virtual Type | type () const =0 |
virtual bool | isContinuous () const =0 |
float | xGridUnit () override |
virtual int | numberOfParameter ()=0 |
virtual float | parameterValueAtIndex (int index)=0 |
virtual I18n::Message | parameterNameAtIndex (int index)=0 |
virtual I18n::Message | parameterDefinitionAtIndex (int index)=0 |
virtual void | setParameterAtIndex (float f, int index)=0 |
virtual float | evaluateAtAbscissa (float x) const =0 |
virtual bool | authorizedValueAtIndex (float x, int index) const =0 |
virtual double | cumulativeDistributiveFunctionAtAbscissa (double x) const |
double | rightIntegralFromAbscissa (double x) const |
double | finiteIntegralBetweenAbscissas (double a, double b) const |
virtual double | cumulativeDistributiveInverseForProbability (double *probability) |
virtual double | rightIntegralInverseForProbability (double *probability) |
virtual double | evaluateAtDiscreteAbscissa (int k) const |
Public Member Functions inherited from Shared::CurveViewRange | |
virtual uint32_t | rangeChecksum () |
virtual float | xMin ()=0 |
virtual float | xMax ()=0 |
virtual float | yMin ()=0 |
virtual float | yMax ()=0 |
virtual float | yGridUnit () |
float | computeGridUnit (Axis axis, float min, float max) |
Static Public Attributes | |
static constexpr int | k_maxNumberOfOperations = 1000000 |
Static Public Attributes inherited from Shared::CurveViewRange | |
static constexpr float | k_maxNumberOfXGridUnits = 18.0f |
static constexpr float | k_maxNumberOfYGridUnits = 13.0f |
Static Protected Attributes | |
static constexpr double | k_maxProbability = 0.9999995 |
static constexpr float | k_displayTopMarginRatio = 0.05f |
static constexpr float | k_displayBottomMarginRatio = 0.2f |
static constexpr float | k_displayLeftMarginRatio = 0.05f |
static constexpr float | k_displayRightMarginRatio = 0.05f |
|
strong |
|
virtualdefault |
|
pure virtual |
|
virtual |
Reimplemented in Probability::NormalLaw, Probability::UniformLaw, and Probability::ExponentialLaw.
|
virtual |
Reimplemented in Probability::BinomialLaw, Probability::NormalLaw, Probability::UniformLaw, and Probability::ExponentialLaw.
|
pure virtual |
|
virtual |
Reimplemented in Probability::BinomialLaw.
double Probability::Law::finiteIntegralBetweenAbscissas | ( | double | a, |
double | b | ||
) | const |
|
pure virtual |
|
pure virtual |
Implemented in Probability::OneParameterLaw, and Probability::TwoParameterLaw.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in Probability::OneParameterLaw, and Probability::TwoParameterLaw.
double Probability::Law::rightIntegralFromAbscissa | ( | double | x | ) | const |
|
virtual |
Reimplemented in Probability::BinomialLaw.
|
pure virtual |
Implemented in Probability::NormalLaw, Probability::UniformLaw, Probability::OneParameterLaw, and Probability::TwoParameterLaw.
|
pure virtual |
|
pure virtual |
|
overridevirtual |
Implements Shared::CurveViewRange.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
staticprotected |