mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
Plots are still rendered in float but computations are now in double Change-Id: I7e0a38effb780861b1443ee92a097cd319de3bc8
25 lines
592 B
C++
25 lines
592 B
C++
#ifndef PROBABILITE_TWO_PARAMETER_DISTRIBUTION_H
|
|
#define PROBABILITE_TWO_PARAMETER_DISTRIBUTION_H
|
|
|
|
#include "distribution.h"
|
|
|
|
namespace Probability {
|
|
|
|
class TwoParameterDistribution : public Distribution {
|
|
public:
|
|
TwoParameterDistribution(float parameterValue1, float parameterValue2) :
|
|
m_parameter1(parameterValue1),
|
|
m_parameter2(parameterValue2)
|
|
{}
|
|
int numberOfParameter() override { return 2; }
|
|
double parameterValueAtIndex(int index) override;
|
|
void setParameterAtIndex(float f, int index) override;
|
|
protected:
|
|
double m_parameter1;
|
|
double m_parameter2;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|