PGAStddev(4)

NAME
PGAStddev - calculates the standard deviation of an array of elements

INPUT PARAMETERS
ctx - context variable
a   - array to take the standard deviation of
n   - number of elements in array a
mean
    - the mean of the elements in array a

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
double  PGAStddev(ctx, a, n, mean)
PGAContext *ctx
double *a
int n
double mean

LOCATION
fitness.c

EXAMPLE
Example:
PGAContext *ctx;
double a[n], mean, sigma;
:
mean  = PGAMean(ctx,a,n);
sigma = PGAStddev(ctx,a,n,mean);