Blame view

build4/epsilon-master/apps/probability/calculation/finite_integral_calculation.h 720 Bytes
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
26
27
28
  #ifndef PROBABILITE_FINITE_INTEGRAL_CALCULATION_H
  #define PROBABILITE_FINITE_INTEGRAL_CALCULATION_H
  
  #include "calculation.h"
  
  namespace Probability {
  
  class FiniteIntegralCalculation : public Calculation {
  public:
    FiniteIntegralCalculation();
    Type type() override;
    int numberOfParameters() override;
    int numberOfEditableParameters() override;
    I18n::Message legendForParameterAtIndex(int index) override;
    void setParameterAtIndex(double f, int index) override;
    double parameterAtIndex(int index) override;
    double lowerBound() override;
    double upperBound() override;
  private:
    void compute(int indexKnownElement) override;
    double m_lowerBound;
    double m_upperBound;
    double m_result;
  };
  
  }
  
  #endif