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
7
Calculation::Calculation
():
8
m_law(nullptr)
9
{
10
}
11
12
void
Calculation::setLaw
(
Law
* law) {
13
m_law
= law;
14
compute
(0);
15
}
16
17
int
Calculation::numberOfEditableParameters
() {
18
return
numberOfParameters
();
19
}
20
21
double
Calculation::lowerBound
() {
22
return
-
INFINITY
;
23
}
24
25
double
Calculation::upperBound
() {
26
return
INFINITY
;
27
}
28
29
}
Probability
Definition:
app.cpp:8
Probability::Calculation::numberOfEditableParameters
virtual int numberOfEditableParameters()
Definition:
calculation.cpp:17
Probability::Law
Definition:
law.h:12
Probability::Calculation::compute
virtual void compute(int indexKnownElement)=0
assert.h
Probability::Calculation::lowerBound
virtual double lowerBound()
Definition:
calculation.cpp:21
INFINITY
#define INFINITY
Definition:
math.h:29
Probability::Calculation::Calculation
Calculation()
Definition:
calculation.cpp:7
calculation.h
Probability::Calculation::setLaw
void setLaw(Law *law)
Definition:
calculation.cpp:12
Probability::Calculation::numberOfParameters
virtual int numberOfParameters()=0
Probability::Calculation::upperBound
virtual double upperBound()
Definition:
calculation.cpp:25
Probability::Calculation::m_law
Law * m_law
Definition:
calculation.h:29
epsilon
apps
probability
calculation
calculation.cpp
Generated by
1.8.14