#include <Statistics.hh>
Public Methods | |
Statistics (int arrayLengthIn, double *arrayIn) | |
The class constructor. More... | |
~Statistics () | |
The class destructor. More... | |
double | GetMinimum () |
Returns the mimimum value of the samples. More... | |
double | GetMaximum () |
double | GetMean () |
double | GetStdDev () |
double | GetVariance () |
double | GetMedian () |
Private Methods | |
double | Minimum (void) |
Computes the mimimum value of the samples. More... | |
double | Maximum (void) |
double | Mean (void) |
double | MeanSquares (void) |
double | Variance (void) |
double | Median (double *SortedArray, int Length) |
void | SelectionSort (double *Array, double *SortedArray, int Length) |
Used in calculation of median. More... | |
int | MaximumIndex (double *Array, int Length) |
Used in calculation of maximum. More... | |
Private Attributes | |
int | arrayLength |
The number of samples. More... | |
double * | array |
Array to store values of samples. Must be initialized by user in application code. More... | |
double * | sortedArray |
Used in calculation of median. More... | |
double | minimum |
Variable which holds the minimum value of the samples. More... | |
double | maximum |
double | mean |
double | standardDeviation |
double | variance |
double | median |
|
The class constructor. General facts about constructors:
the private data members Statistics::arrayLength and Statistics::array Then it calls other member functions to compute the values of the private data members
|
|
The class destructor. General facts about destructors:
|
|
|
|
|
|
|
|
Returns the mimimum value of the samples.
|
|
|
|
|
|
|
|
Used in calculation of maximum.
|
|
|
|
|
|
|
|
Computes the mimimum value of the samples.
|
|
Used in calculation of median.
|
|
|
|
Array to store values of samples. Must be initialized by user in application code.
|
|
The number of samples.
|
|
|
|
|
|
|
|
Variable which holds the minimum value of the samples.
|
|
Used in calculation of median.
|
|
|
|
|