Numworks Epsilon
1.4.1
Graphing Calculator Operating System
one_parameter_law.cpp
Go to the documentation of this file.
1
#include "
one_parameter_law.h
"
2
#include <
assert.h
>
3
4
namespace
Probability
{
5
6
OneParameterLaw::OneParameterLaw
(
float
parameterValue) :
7
m_parameter1(parameterValue)
8
{
9
}
10
11
int
OneParameterLaw::numberOfParameter
() {
12
return
1;
13
}
14
15
float
OneParameterLaw::parameterValueAtIndex
(
int
index) {
16
assert
(index == 0);
17
return
m_parameter1
;
18
}
19
20
void
OneParameterLaw::setParameterAtIndex
(
float
f,
int
index) {
21
assert
(index == 0);
22
m_parameter1
= f;
23
}
24
25
}
Probability
Definition:
app.cpp:8
assert
#define assert(e)
Definition:
assert.h:9
Probability::OneParameterLaw::setParameterAtIndex
void setParameterAtIndex(float f, int index) override
Definition:
one_parameter_law.cpp:20
Probability::OneParameterLaw::numberOfParameter
int numberOfParameter() override
Definition:
one_parameter_law.cpp:11
one_parameter_law.h
Probability::OneParameterLaw::parameterValueAtIndex
float parameterValueAtIndex(int index) override
Definition:
one_parameter_law.cpp:15
assert.h
Probability::OneParameterLaw::m_parameter1
float m_parameter1
Definition:
one_parameter_law.h:15
Probability::OneParameterLaw::OneParameterLaw
OneParameterLaw(float parameterValue)
Definition:
one_parameter_law.cpp:6
epsilon
apps
probability
law
one_parameter_law.cpp
Generated by
1.8.14