Numworks Epsilon  1.4.1
Graphing Calculator Operating System
poisson_law.h
Go to the documentation of this file.
1 #ifndef PROBABILITE_POISSON_LAW_H
2 #define PROBABILITE_POISSON_LAW_H
3 
4 #include "one_parameter_law.h"
5 
6 namespace Probability {
7 
8 class PoissonLaw : public OneParameterLaw {
9 public:
10  PoissonLaw();
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  return templatedApproximateAtAbscissa(x);
22  }
23  bool authorizedValueAtIndex(float x, int index) const override;
24 private:
25  double evaluateAtDiscreteAbscissa(int k) const override {
26  return templatedApproximateAtAbscissa((double)k);
27  }
28  template<typename T> T templatedApproximateAtAbscissa(T x) const;
29 };
30 
31 }
32 
33 #endif
bool authorizedValueAtIndex(float x, int index) const override
Definition: poisson_law.cpp:58
float xMax() override
Definition: poisson_law.cpp:39
#define T(x)
Definition: events.cpp:26
I18n::Message parameterDefinitionAtIndex(int index) override
Definition: poisson_law.cpp:30
float evaluateAtAbscissa(float x) const override
Definition: poisson_law.h:20
float yMin() override
Definition: poisson_law.cpp:44
float yMax() override
Definition: poisson_law.cpp:48
I18n::Message parameterNameAtIndex(int index) override
Definition: poisson_law.cpp:25
float xMin() override
Definition: poisson_law.cpp:35
bool isContinuous() const override
Definition: poisson_law.cpp:21
Type type() const override
Definition: poisson_law.cpp:17
I18n::Message title() override
Definition: poisson_law.cpp:13