Numworks Epsilon  1.4.1
Graphing Calculator Operating System
calculation.cpp
Go to the documentation of this file.
1 #include "calculation.h"
2 #include <assert.h>
3 #include <cmath>
4 
5 namespace Probability {
6 
8  m_law(nullptr)
9 {
10 }
11 
12 void Calculation::setLaw(Law * law) {
13  m_law = law;
14  compute(0);
15 }
16 
18  return numberOfParameters();
19 }
20 
22  return -INFINITY;
23 }
24 
26  return INFINITY;
27 }
28 
29 }
virtual int numberOfEditableParameters()
Definition: calculation.cpp:17
virtual void compute(int indexKnownElement)=0
virtual double lowerBound()
Definition: calculation.cpp:21
#define INFINITY
Definition: math.h:29
virtual int numberOfParameters()=0
virtual double upperBound()
Definition: calculation.cpp:25