Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Probability::NormalLaw Class Reference

#include <normal_law.h>

Inheritance diagram for Probability::NormalLaw:
Probability::TwoParameterLaw Probability::Law Shared::CurveViewRange

Public Member Functions

 NormalLaw ()
 
I18n::Message title () override
 
Type type () const override
 
bool isContinuous () const override
 
float xMin () override
 
float yMin () override
 
float xMax () override
 
float yMax () override
 
I18n::Message parameterNameAtIndex (int index) override
 
I18n::Message parameterDefinitionAtIndex (int index) override
 
float evaluateAtAbscissa (float x) const override
 
bool authorizedValueAtIndex (float x, int index) const override
 
void setParameterAtIndex (float f, int index) override
 
double cumulativeDistributiveFunctionAtAbscissa (double x) const override
 
double cumulativeDistributiveInverseForProbability (double *probability) override
 
- Public Member Functions inherited from Probability::TwoParameterLaw
 TwoParameterLaw (float parameterValue1, float parameterValue2)
 
int numberOfParameter () override
 
float parameterValueAtIndex (int index) override
 
void setParameterAtIndex (float f, int index) override
 
- Public Member Functions inherited from Probability::Law
 Law ()
 
virtual ~Law ()=default
 
float xGridUnit () override
 
double rightIntegralFromAbscissa (double x) const
 
double finiteIntegralBetweenAbscissas (double a, double b) const
 
virtual double rightIntegralInverseForProbability (double *probability)
 
virtual double evaluateAtDiscreteAbscissa (int k) const
 
- Public Member Functions inherited from Shared::CurveViewRange
virtual uint32_t rangeChecksum ()
 
virtual float yGridUnit ()
 
float computeGridUnit (Axis axis, float min, float max)
 

Additional Inherited Members

- Public Types inherited from Probability::Law
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 }
 
- Static Public Attributes inherited from Probability::Law
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
 
- Protected Attributes inherited from Probability::TwoParameterLaw
float m_parameter1
 
float m_parameter2
 
- Static Protected Attributes inherited from Probability::Law
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
 

Detailed Description

Definition at line 8 of file normal_law.h.

Constructor & Destructor Documentation

◆ NormalLaw()

Probability::NormalLaw::NormalLaw ( )

Definition at line 10 of file normal_law.cpp.

Member Function Documentation

◆ authorizedValueAtIndex()

bool Probability::NormalLaw::authorizedValueAtIndex ( float  x,
int  index 
) const
overridevirtual

Implements Probability::Law.

Definition at line 79 of file normal_law.cpp.

◆ cumulativeDistributiveFunctionAtAbscissa()

double Probability::NormalLaw::cumulativeDistributiveFunctionAtAbscissa ( double  x) const
overridevirtual

Reimplemented from Probability::Law.

Definition at line 96 of file normal_law.cpp.

◆ cumulativeDistributiveInverseForProbability()

double Probability::NormalLaw::cumulativeDistributiveInverseForProbability ( double *  probability)
overridevirtual

Reimplemented from Probability::Law.

Definition at line 103 of file normal_law.cpp.

◆ evaluateAtAbscissa()

float Probability::NormalLaw::evaluateAtAbscissa ( float  x) const
overridevirtual

Implements Probability::Law.

Definition at line 72 of file normal_law.cpp.

◆ isContinuous()

bool Probability::NormalLaw::isContinuous ( ) const
overridevirtual

Implements Probability::Law.

Definition at line 23 of file normal_law.cpp.

◆ parameterDefinitionAtIndex()

I18n::Message Probability::NormalLaw::parameterDefinitionAtIndex ( int  index)
overridevirtual

Implements Probability::Law.

Definition at line 36 of file normal_law.cpp.

◆ parameterNameAtIndex()

I18n::Message Probability::NormalLaw::parameterNameAtIndex ( int  index)
overridevirtual

Implements Probability::Law.

Definition at line 27 of file normal_law.cpp.

◆ setParameterAtIndex()

void Probability::NormalLaw::setParameterAtIndex ( float  f,
int  index 
)
overridevirtual

Implements Probability::Law.

Definition at line 89 of file normal_law.cpp.

◆ title()

I18n::Message Probability::NormalLaw::title ( )
overridevirtual

Implements Probability::Law.

Definition at line 15 of file normal_law.cpp.

◆ type()

Law::Type Probability::NormalLaw::type ( ) const
overridevirtual

Implements Probability::Law.

Definition at line 19 of file normal_law.cpp.

◆ xMax()

float Probability::NormalLaw::xMax ( )
overridevirtual

Implements Shared::CurveViewRange.

Definition at line 52 of file normal_law.cpp.

◆ xMin()

float Probability::NormalLaw::xMin ( )
overridevirtual

Implements Shared::CurveViewRange.

Definition at line 45 of file normal_law.cpp.

◆ yMax()

float Probability::NormalLaw::yMax ( )
overridevirtual

Implements Shared::CurveViewRange.

Definition at line 63 of file normal_law.cpp.

◆ yMin()

float Probability::NormalLaw::yMin ( )
overridevirtual

Implements Shared::CurveViewRange.

Definition at line 59 of file normal_law.cpp.


The documentation for this class was generated from the following files: