Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Probability::Calculation Class Referenceabstract

#include <calculation.h>

Inheritance diagram for Probability::Calculation:
Probability::DiscreteCalculation Probability::FiniteIntegralCalculation Probability::LeftIntegralCalculation Probability::RightIntegralCalculation

Public Types

enum  Type : uint8_t { Type::LeftIntegral, Type::FiniteIntegral, Type::RightIntegral, Type::Discrete }
 

Public Member Functions

 Calculation ()
 
virtual ~Calculation ()=default
 
virtual Type type ()=0
 
void setLaw (Law *law)
 
virtual int numberOfParameters ()=0
 
virtual int numberOfEditableParameters ()
 
virtual I18n::Message legendForParameterAtIndex (int index)=0
 
virtual void setParameterAtIndex (double f, int index)=0
 
virtual double parameterAtIndex (int index)=0
 
virtual double lowerBound ()
 
virtual double upperBound ()
 

Protected Member Functions

virtual void compute (int indexKnownElement)=0
 

Protected Attributes

Lawm_law
 

Detailed Description

Definition at line 8 of file calculation.h.

Member Enumeration Documentation

◆ Type

Enumerator
LeftIntegral 
FiniteIntegral 
RightIntegral 
Discrete 

Definition at line 10 of file calculation.h.

Constructor & Destructor Documentation

◆ Calculation()

Probability::Calculation::Calculation ( )

Definition at line 7 of file calculation.cpp.

◆ ~Calculation()

virtual Probability::Calculation::~Calculation ( )
virtualdefault

Member Function Documentation

◆ compute()

virtual void Probability::Calculation::compute ( int  indexKnownElement)
protectedpure virtual

◆ legendForParameterAtIndex()

virtual I18n::Message Probability::Calculation::legendForParameterAtIndex ( int  index)
pure virtual

◆ lowerBound()

double Probability::Calculation::lowerBound ( )
virtual

◆ numberOfEditableParameters()

int Probability::Calculation::numberOfEditableParameters ( )
virtual

◆ numberOfParameters()

virtual int Probability::Calculation::numberOfParameters ( )
pure virtual

◆ parameterAtIndex()

virtual double Probability::Calculation::parameterAtIndex ( int  index)
pure virtual

◆ setLaw()

void Probability::Calculation::setLaw ( Law law)

Definition at line 12 of file calculation.cpp.

◆ setParameterAtIndex()

virtual void Probability::Calculation::setParameterAtIndex ( double  f,
int  index 
)
pure virtual

◆ type()

◆ upperBound()

double Probability::Calculation::upperBound ( )
virtual

Member Data Documentation

◆ m_law

Law* Probability::Calculation::m_law
protected

Definition at line 29 of file calculation.h.


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