The Complete SPRLIB & ANNLIB

calc_mean_var

- calculate the mean and variance of patterns

SYNOPSIS

int calc_mean_var (n, m, c)

ARGUMENTS

int n The dimensionality of the patterns.
double *m The mean, a vector of size [1..n].
double **c The variance, a matrix of size [1..n][1..n].

RETURNS

The function returns TRUE if and error occured. If no error was detected the function returns FALSE and m and c contain valid values.

FUNCTION

This function calculates the mean and variance of the patterns that were added using add_mean_var.

NOTE

The variable c is in matrix format and m is in vector format.

SEE ALSO

add_mean_var, ESTIMATE-variables

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