Files
Upsilon/apps/probability/calculation/right_integral_calculation.h
Émilie Feral f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00

26 lines
616 B
C++

#ifndef PROBABILITE_RIGHT_INTEGRAL_CALCULATION_H
#define PROBABILITE_RIGHT_INTEGRAL_CALCULATION_H
#include "calculation.h"
namespace Probability {
class RightIntegralCalculation : public Calculation {
public:
RightIntegralCalculation();
Type type() override;
int numberOfParameters() override;
I18n::Message legendForParameterAtIndex(int index) override;
void setParameterAtIndex(double f, int index) override;
double parameterAtIndex(int index) override;
double lowerBound() override;
private:
void compute(int indexKnownElement) override;
double m_lowerBound;
double m_result;
};
}
#endif