Files
Upsilon/apps/probability/calculation.h
Émilie Feral 7af3979d3b [poincare] Change Context API
Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
2016-12-15 13:51:41 +01:00

34 lines
612 B
C++

#ifndef PROBABILITE_CALCULATION_H
#define PROBABILITE_CALCULATION_H
#include "law/law.h"
namespace Probability {
class Calculation {
public:
enum Type : uint8_t {
LeftIntegral = 0,
FiniteIntegral = 1,
RightIntegral = 2,
};
Calculation();
void setLaw(Law * law);
void setType(Type type);
Type type() const;
float parameterAtIndex(int index);
void setParameterAtIndex(float f, int index);
private:
void computeCalculation(int indexKnownElement);
void initParameters();
Type m_type;
float m_parameter1;
float m_parameter2;
float m_parameter3;
Law * m_law;
};
}
#endif