Numworks Epsilon  1.4.1
Graphing Calculator Operating System
calculation.h
Go to the documentation of this file.
1 #ifndef PROBABILITE_CALCULATION_H
2 #define PROBABILITE_CALCULATION_H
3 
4 #include "../law/law.h"
5 
6 namespace Probability {
7 
8 class Calculation {
9 public:
10  enum class Type : uint8_t{
14  Discrete,
15  };
16  Calculation();
17  virtual ~Calculation() = default;
18  virtual Type type() = 0;
19  void setLaw(Law * law);
20  virtual int numberOfParameters() = 0;
21  virtual int numberOfEditableParameters();
22  virtual I18n::Message legendForParameterAtIndex(int index) = 0;
23  virtual void setParameterAtIndex(double f, int index) = 0;
24  virtual double parameterAtIndex(int index) = 0;
25  virtual double lowerBound();
26  virtual double upperBound();
27 protected:
28  virtual void compute(int indexKnownElement) = 0;
30 };
31 
32 }
33 
34 #endif
virtual double parameterAtIndex(int index)=0
virtual int numberOfEditableParameters()
Definition: calculation.cpp:17
unsigned char uint8_t
Definition: stdint.h:4
virtual void compute(int indexKnownElement)=0
virtual ~Calculation()=default
virtual I18n::Message legendForParameterAtIndex(int index)=0
virtual double lowerBound()
Definition: calculation.cpp:21
virtual int numberOfParameters()=0
virtual double upperBound()
Definition: calculation.cpp:25
virtual Type type()=0
virtual void setParameterAtIndex(double f, int index)=0