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 
12  return 1;
13 }
14 
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 }
#define assert(e)
Definition: assert.h:9
void setParameterAtIndex(float f, int index) override
float parameterValueAtIndex(int index) override
OneParameterLaw(float parameterValue)