class to compute some simple statistics Note void ProcessArray ( const int * , size_t numInts ) ; can be called directly with an stl vector as follows ProcessArray ( &foo[0], foo.size() );
More...
#include <Statistics.h>
|
static double | GetAverage (T *pData, int nrElements) |
| Computes the average of the elements in the given array. More...
|
|
static double | GetAverage (std::vector< T > vData) |
| Computes the average of the elements in the given STL vector (Calls pointer-based method) More...
|
|
static double | GetVariance (T *pData, int nrElements) |
| Computes the variance of the elements in the given array Computes implicitely the average of the elements to be able to compute the variance. More...
|
|
static double | GetVariance (std::vector< T > vData) |
| Computes the variance of the elements in the given vector (Calls pointer-based method) Computes implicitely the average of the elements to be able to compute the variance. More...
|
|
static double | GetVariance (T *pData, int nrElements, double average) |
| Computes the variance of the elements in the given array Uses the average passed as argument to compute the variance. More...
|
|
static double | GetVariance (std::vector< T > vData, double average) |
| Computes the variance of the elements in the given vector (Calls pointer-based method) Uses the average passed as argument to compute the variance. More...
|
|
static double | GetCorrelation (double *pData1, double *pData2, int nrElements) |
| Computes the correlation between the elements in two given vectors. More...
|
|
static double | GetCorrelation (std::vector< double > vData1, std::vector< double > vData2) |
| Computes the correlation between the elements in two given vectors. More...
|
|
static std::pair< double, double > | ComputeFirstTwoCentralMoments (std::vector< Point< double > > inPoints) |
|
template<class T>
class stira::common::Statistics< T >
class to compute some simple statistics Note void ProcessArray ( const int * , size_t numInts ) ; can be called directly with an stl vector as follows ProcessArray ( &foo[0], foo.size() );
Computes the average of the elements in the given array.
- Parameters
-
pData | pointer to array of values |
nrElements | number of elements in the array |
Computes the average of the elements in the given STL vector (Calls pointer-based method)
- Parameters
-
vData | STL vector of values |
Computes the correlation between the elements in two given vectors.
- Parameters
-
vData1 | vector 1 of values |
vData2 | vector 2 of values |
Computes the variance of the elements in the given array Computes implicitely the average of the elements to be able to compute the variance.
- Parameters
-
pData | pointer to array of values |
nrElements | number of elements in the array |
Computes the variance of the elements in the given vector (Calls pointer-based method) Computes implicitely the average of the elements to be able to compute the variance.
- Parameters
-
Computes the variance of the elements in the given array Uses the average passed as argument to compute the variance.
- Parameters
-
pData | pointer to array of values |
nrElements | number of elements in the array |
average | Uses this value as average to compute the variance |
Computes the variance of the elements in the given vector (Calls pointer-based method) Uses the average passed as argument to compute the variance.
- Parameters
-
vData | vector of values |
average | Uses this value as average to compute the variance |
The documentation for this class was generated from the following file:
- common/common/Statistics.h