ZeusMath-Library
2.0.4
|
#include <IDistribution.hpp>
Public Member Functions | |
virtual Float MQUALIFIER | getEntropy () const =0 |
virtual Float MQUALIFIER | getExpectedValue () const =0 |
virtual Float MQUALIFIER | getMean () const =0 |
virtual Float MQUALIFIER | getMedian () const =0 |
virtual Float MQUALIFIER | getVariance () const =0 |
virtual Float MQUALIFIER | getStdDeviation () const =0 |
virtual Float MQUALIFIER | getMode () const =0 |
virtual Float MQUALIFIER | getSkewness () const =0 |
virtual Float MQUALIFIER | getCumulativeProb (const Float &rfStart, const Float &rfEnd) const =0 |
virtual Float MQUALIFIER | getProb (const Float &rfX) const =0 |
virtual Float MQUALIFIER | getSampleProb (Int iSample) const =0 |
This interface defines the access to a distribution object
|
pure virtual |
Cumulative method to get the probability between two positions (samples)
rfStart | : start position |
rfEnd | : End position |
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Hiding methods.
returns the entropy of the distribution
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
returns the expected value of the distribution
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
calculates the mean value, which is also called sample mean. This is the most used method to calculate the avarage of a distribution.
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
returns the median of the probability distribution. The median value meets following constraints P(X <= m1) >= 0.5 and P(X >= m2) >= 0.5. If m1 is not equal to m2 (even set of values) then (m1 + m2)/2 is returned To calculate the median based on sample values, use the static method taking a list of float values.
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Returns the mode of the distribution curve
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Returns the probability at position x. For discrete distribution this returns the value 0 (not defined).
rfX | : position in X |
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Returns the probability for a sample
iSample | : index of the sample |
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Returns the skewness of the distribution curve
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
Returns the standard deviation of the distribution
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.
|
pure virtual |
returns the variance of the distribution
Implemented in zeus::TNormalDistribution, zeus::TBinomialDistribution, zeus::TPoissonDistribution, and zeus::TDistribution.