These routines are defined using a template-like macro mechanism to ease generation of other types.
Go to the source code of this file.
Defines | |
#define | INC_UTIL_STAT_H |
util/stat.h included. | |
#define | VALTYPE double |
Scalar type. | |
#define | VALTYPE_IS_FLOAT 1 |
Define to be 1 if the scalar type is a floating point type. | |
#define | VTMANGLE(x) stat_##x |
Define to generate an alternative set of names. | |
#define | VALTYPE_STD_COMPARE 1 |
Define to 1 to enable automatic comparison function generation. | |
Functions | |
void VTMANGLE() | CalcBasicStats (const VALTYPE *x, size_t n, VALTYPE *p_min, VALTYPE *p_max, VALTYPE *p_mean, VALTYPE *p_median) |
Returns the min, mean, median, and max values of the given array. | |
void VTMANGLE() | CalcMinMaxMean (const VALTYPE *x, size_t n, VALTYPE *p_min, VALTYPE *p_max, VALTYPE *p_mean) |
Returns the min, mean, and max values of the given array. | |
void VTMANGLE() | CalcMinMaxMedian (const VALTYPE *x, size_t n, VALTYPE *p_min, VALTYPE *p_max, VALTYPE *p_median) |
Returns the min, mean, and median values of the given array. | |
VALTYPE VTMANGLE() | CalcMedian (const VALTYPE *x, size_t n) |
Returns just the median value of the given array. | |
VALTYPE VTMANGLE() | CalcMin (const VALTYPE *x, size_t n) |
Returns the minimum value of the given array. | |
VALTYPE VTMANGLE() | CalcMax (const VALTYPE *x, size_t n) |
Returns the minimum value of the given array. | |
VALTYPE VTMANGLE() | CalcMean (const VALTYPE *x, size_t n) |
Returns the maximum value of the given array. |
|
Returns the minimum value of the given array.
|
|
Returns the maximum value of the given array.
|
|
Returns the minimum value of the given array.
|
|
Returns the min, mean, and max values of the given array.
|
|
Returns the min, mean, and median values of the given array.
|