Function PGAMean
Defined in File utility.c
Function Documentation
-
double PGAMean(PGAContext *ctx, double *a, int n)
Calculates the mean value of an array of elements.
Example
PGAContext *ctx; double a [100], mean; ... mean = PGAMean (ctx, a, 100);
- Parameters:
ctx – context variable
a – array to take the mean of
n – number of elements in array a
- Returns:
The mean of the n elements in array a