The Complete SPRLIB & ANNLIB

random_multi_gauss

- generate a random pattern using a Gauss distribution

SYNOPSIS

int random_multi_gauss (mean, n, pattern)

ARGUMENTS

double *mean The mean of the gauss distribution, a vector of size [1..n].
int n The dimension of the pattern.
double *pattern The generated pattern, a vector of size [1..n].

RETURNS

The function returns TRUE if an error was detected. If no error was detected, FALSE is returned and pattern contains a valid pattern representation.

FUNCTION

The function can be used to generate a pattern according to a Gaussian distribution with mean mean and a given covariance.

NOTE

The function random_multi_init must be called first to allocate space for the eigenvectors and eigenvalues needed to generate a pattern. The variable mean and pattern are in vector format. After generation pattern has the same dimension as mean.

SEE ALSO

random_multi_init, random_multi_free, GASMULT-variables

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