|
TPCCLIB
|
Functions for calculating mean and stdev. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include "tpcextensions.h"#include "tpcstatist.h"Go to the source code of this file.
Functions | |
| int | statMeanSD (double *data, unsigned int n, double *mean, double *sd, unsigned int *vn) |
| int | fstatMeanSD (float *data, unsigned int n, float *mean, float *sd, unsigned int *vn) |
Functions for calculating mean and stdev.
Definition in file mean.c.
| int fstatMeanSD | ( | float * | data, |
| unsigned int | n, | ||
| float * | mean, | ||
| float * | sd, | ||
| unsigned int * | vn ) |
Calculate mean and sample standard deviation in an array of given float data. NaNs in the data are left out.
| data | Pointer to data array of size n; data is not changed in any way. |
| n | Length of data array. |
| mean | Pointer to variable where mean will be written; enter NULL if not needed. |
| sd | Pointer to variable where SD will be written; enter NULL if not needed. |
| vn | Pointer to variable where the number of valid (not NaN) samples will be written; enter NULL if not needed. |
Definition at line 73 of file mean.c.
| int statMeanSD | ( | double * | data, |
| unsigned int | n, | ||
| double * | mean, | ||
| double * | sd, | ||
| unsigned int * | vn ) |
Calculate mean and sample standard deviation in an array of given data. NaNs in the data are left out.
| data | Pointer to data array of size n; data is not changed in any way. |
| n | Length of data array. |
| mean | Pointer to variable where mean will be written; enter NULL if not needed. |
| sd | Pointer to variable where SD will be written; enter NULL if not needed. |
| vn | Pointer to variable where the number of valid (not NaN) samples will be written; enter NULL if not needed. |
Definition at line 25 of file mean.c.
Referenced by nloptIATGO(), nloptMPSOabsvMean(), and nloptMPSOpMean().