Numworks Epsilon  1.4.1
Graphing Calculator Operating System
uniform_law.h
Go to the documentation of this file.
1 #ifndef PROBABILITE_UNIFORM_LAW_H
2 #define PROBABILITE_UNIFORM_LAW_H
3 
4 #include "two_parameter_law.h"
5 
6 namespace Probability {
7 
8 class UniformLaw : public TwoParameterLaw {
9 public:
10  UniformLaw();
11  I18n::Message title() override;
12  Type type() const override;
13  bool isContinuous() const override;
14  float xMin() override;
15  float yMin() override;
16  float xMax() override;
17  float yMax() override;
18  I18n::Message parameterNameAtIndex(int index) override;
19  I18n::Message parameterDefinitionAtIndex(int index) override;
20  float evaluateAtAbscissa(float x) const override;
21  bool authorizedValueAtIndex(float x, int index) const override;
22  void setParameterAtIndex(float f, int index) override;
23  double cumulativeDistributiveFunctionAtAbscissa(double x) const override;
24  double cumulativeDistributiveInverseForProbability(double * probability) override;
25 private:
26  constexpr static float k_diracMaximum = 10.0f;
27  constexpr static float k_diracWidth = 0.005f;
28 };
29 
30 }
31 
32 #endif
bool authorizedValueAtIndex(float x, int index) const override
Definition: uniform_law.cpp:83
float yMax() override
Definition: uniform_law.cpp:62
bool isContinuous() const override
Definition: uniform_law.cpp:21
float yMin() override
Definition: uniform_law.cpp:58
double cumulativeDistributiveFunctionAtAbscissa(double x) const override
float xMax() override
Definition: uniform_law.cpp:51
float xMin() override
Definition: uniform_law.cpp:43
I18n::Message parameterNameAtIndex(int index) override
Definition: uniform_law.cpp:25
I18n::Message title() override
Definition: uniform_law.cpp:13
void setParameterAtIndex(float f, int index) override
Definition: uniform_law.cpp:93
float evaluateAtAbscissa(float x) const override
Definition: uniform_law.cpp:70
Type type() const override
Definition: uniform_law.cpp:17
I18n::Message parameterDefinitionAtIndex(int index) override
Definition: uniform_law.cpp:34
double cumulativeDistributiveInverseForProbability(double *probability) override