The Complete SPRLIB & ANNLIB

add_mean_var

- add a pattern to the summations needed for mean and variance

SYNOPSIS

int add_mean_var (pattern, n)

ARGUMENTS

double *pattern The pattern to be added, a vector of size [1..n].
int n The dimensionality of the pattern.

RETURNS

The function returns TRUE if an error was detected, and FALSE otherwise.

FUNCTION

The function adds a pattern to the local variables cov and mean which contain the summations of the previous patterns added. The final covariance and mean can be calculated using calc_mean_var.

NOTE

The variable pattern is in vector format.

SEE ALSO

calc_mean_var, ESTIMATE-variables

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998