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

#include <one_parameter_law.h>

Inheritance diagram for Probability::OneParameterLaw:
Probability::Law Shared::CurveViewRange Probability::ExponentialLaw Probability::PoissonLaw

Public Member Functions

 OneParameterLaw (float parameterValue)
 
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
 
virtual I18n::Message title ()=0
 
virtual Type type () const =0
 
virtual bool isContinuous () const =0
 
float xGridUnit () override
 
virtual I18n::Message parameterNameAtIndex (int index)=0
 
virtual I18n::Message parameterDefinitionAtIndex (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)
 

Protected Attributes

float m_parameter1
 

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
 
- 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 one_parameter_law.h.

Constructor & Destructor Documentation

◆ OneParameterLaw()

Probability::OneParameterLaw::OneParameterLaw ( float  parameterValue)

Definition at line 6 of file one_parameter_law.cpp.

Member Function Documentation

◆ numberOfParameter()

int Probability::OneParameterLaw::numberOfParameter ( )
overridevirtual

Implements Probability::Law.

Definition at line 11 of file one_parameter_law.cpp.

◆ parameterValueAtIndex()

float Probability::OneParameterLaw::parameterValueAtIndex ( int  index)
overridevirtual

Implements Probability::Law.

Definition at line 15 of file one_parameter_law.cpp.

◆ setParameterAtIndex()

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

Implements Probability::Law.

Definition at line 20 of file one_parameter_law.cpp.

Member Data Documentation

◆ m_parameter1

float Probability::OneParameterLaw::m_parameter1
protected

Definition at line 15 of file one_parameter_law.h.


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