6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "one_parameter_law.h"
#include <assert.h>
namespace Probability {
OneParameterLaw::OneParameterLaw(float parameterValue) :
m_parameter1(parameterValue)
{
}
int OneParameterLaw::numberOfParameter() {
return 1;
}
float OneParameterLaw::parameterValueAtIndex(int index) {
assert(index == 0);
return m_parameter1;
}
void OneParameterLaw::setParameterAtIndex(float f, int index) {
assert(index == 0);
m_parameter1 = f;
}
}
|