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