ZeusMath-Library
2.0.4
|
#include <Distribution.h>
Public Member Functions | |
TDistribution (const TArrayList< Float > &rlstData, bool bDataAsProbabilities) | |
TDistribution (const Float *pafData, Int iArraySize, bool bDataAsProbabilities) | |
TDistribution (const Float *pafSampleData, const Float *pafProb, Int iArraySize) | |
TDistribution (const TArrayList< TMappedValue > &rlstData) | |
TDistribution (const TDistribution &rDist) | |
virtual | ~TDistribution () |
virtual Float MQUALIFIER | getEntropy () const |
virtual Float MQUALIFIER | getExpectedValue () const |
virtual Float MQUALIFIER | getMean () const |
virtual Float MQUALIFIER | getMedian () const |
virtual Float MQUALIFIER | getVariance () const |
virtual Float MQUALIFIER | getMode () const |
virtual Float MQUALIFIER | getSkewness () const |
virtual Float MQUALIFIER | getCumulativeProb (const Float &rfStart, const Float &rfEnd) const |
virtual Float MQUALIFIER | getStdDeviation () const |
virtual Float MQUALIFIER | getProb (const Float &rfX) const |
virtual Float MQUALIFIER | getSampleProb (Int iSample) const |
const TMappedValue & | getSampleConst (Int iIndex) const |
TMappedValue & | getSample (Int iIndex) |
Int | getSampleCount () const |
Float | getSampleValue (Int iIndex) const |
Float | getProbabilitySum () const |
Float | getMaximumSampleValue () const |
Float | getMinimumSampleValue () const |
Static Public Member Functions | |
static Float | getMean (const TArrayList< Float > &rlstData) |
static Float | getMean (const Float *pafData, Int iCount) |
static Float | getMedian (const TArrayList< Float > &rlstData) |
static Float | getMedian (const Float *pafData, Int iCount) |
static Float | getMedian (const Float *pafData, Int iCount, Float fTotalArea) |
static Float | getStdDeviation (const TArrayList< Float > &rlstData) |
static Float | getStdDeviation (const Float *pafData, Int iCount) |
This class implements the discrete probability distribution. It contains also some generally usable methods (static methods) for other distributions.
TDistribution::TDistribution | ( | const TArrayList< Float > & | rlstData, |
bool | bDataAsProbabilities | ||
) |
Creates a distribution class by an array of double values as samples
rlstData | : sample data |
bDataAsProbabilities | : Flag if the data list contains probabilities (=true) or samples (=false) |
TDistribution::TDistribution | ( | const Float * | pafData, |
Int | iArraySize, | ||
bool | bDataAsProbabilities | ||
) |
Creates a distribution class by an array of double values as samples
pafData | : array of sample data |
iArraySize | : Size of the data array |
bDataAsProbabilities | : Flag if the data list contains probabilities (=true) or samples (=false) |
TDistribution::TDistribution | ( | const Float * | pafSampleData, |
const Float * | pafProb, | ||
Int | iArraySize | ||
) |
Creates a distribution class by an array of double values as samples
pafSampleData | : array of sample data |
pafProb | : probabilities of the samples |
iArraySize | : Size of the data array |
TDistribution::TDistribution | ( | const TArrayList< TMappedValue > & | rlstData | ) |
Creates a dirstibution class by an array of mapped values, where as the first parameter represents the data and the second value represents its propapility
rlstData | : sample data |
TDistribution::TDistribution | ( | const TDistribution & | rDist | ) |
Copy constructor of the distribution
|
virtual |
Destroys the distribution
|
virtual |
Implements zeus::IDistribution.
|
virtual |
Implements zeus::IDistribution.
|
virtual |
Implements zeus::IDistribution.
Float TDistribution::getMaximumSampleValue | ( | ) | const |
returns the maximum value of the distribution
m_lstData.isEmpty()
|
virtual |
Implements zeus::IDistribution.
|
inlinestatic |
|
static |
calculates the mean value, which is also called sample mean. This is the most used method to calculate the avarage of a distribution.
pafData | : List of data |
iCount | : Size of the array |
|
virtual |
Implements zeus::IDistribution.
|
inlinestatic |
|
inlinestatic |
|
static |
Returns the median of a list of data items. The median value seperates the data list into two parts, where as the area of the parts are equal
pafData | : List of data |
iCount | : Size of the array |
fTotalArea | : total area |
Float TDistribution::getMinimumSampleValue | ( | ) | const |
returns the minimum value of the distribution
m_lstData.isEmpty()
|
virtual |
At the moment this method only returns the global maximum as mode
Implements zeus::IDistribution.
|
inlinevirtual |
Implements zeus::IDistribution.
|
inline |
Returns the sum of the probabilities. This is basically the whole area of the distribution
|
inline |
returns the indexed sample
iIndex | : Index of sample |
|
inline |
returns the indexed sample
iIndex | : Index of sample |
|
inline |
Returns the number of samples
|
inlinevirtual |
Implements zeus::IDistribution.
|
inline |
returns the indexed sample value
iIndex | : Index of sample |
|
virtual |
Implements zeus::IDistribution.
|
inlinevirtual |
Implements zeus::IDistribution.
|
inlinestatic |
|
static |
Returns the standard deviation of the data
pafData | : Data array |
iCount | : Size of the array |
|
virtual |
Implements zeus::IDistribution.