Files
Upsilon/apps/probability/calculation/calculation.h
Émilie Feral 34d31ca729 [apps/probability] Round the calculation results to 3 decimals
Change-Id: I6f127253ee3c72d03c71e7c23f2abf3003a29ee9
2017-02-02 10:29:08 +01:00

28 lines
631 B
C++

#ifndef PROBABILITE_CALCULATION_H
#define PROBABILITE_CALCULATION_H
#include "../law/law.h"
namespace Probability {
class Calculation {
public:
Calculation();
virtual ~Calculation() {};
void setLaw(Law * law);
virtual int numberOfParameters() = 0;
virtual const char * legendForParameterAtIndex(int index) = 0;
virtual void setParameterAtIndex(float f, int index) = 0;
virtual float parameterAtIndex(int index) = 0;
virtual float lowerBound();
virtual float upperBound();
protected:
constexpr static float k_precision = 0.001f;
virtual void compute(int indexKnownElement) = 0;
Law * m_law;
};
}
#endif