PGAStddev(3)

PGAStddev3

Calculates the standard deviation of an array of elements

Part of PGAStddev(5).

Usage

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

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

Location

utility.c

Examples

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

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.