The Complete SPRLIB & ANNLIB

mean_var_dataset

- estimate the mean and variance of a class in a data set

SYNOPSIS

int mean_var_dataset (dset, class, mean, var)

ARGUMENTS

DATASET *dset The set which contains the samples to estimate the mean and variance.
int class The class of which the mean and variance have to be estimated.
double **var The variance, a matrix of size [1..dset->NumInputs][1..dset->NumInputs].
double *mean The mean, a vector of size [1..dset->NumInputs].

RETURNS

The function returns TRUE if an error was detected. If no error was detected, return of FALSE, var and mean contain valid data for the variance and mean of class.

FUNCTION

The function computes the mean and variance for a given class class using the dataset dset.

NOTE

The variable mean is in vector format and var in matrix format.

SEE ALSO

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