The Complete SPRLIB & ANNLIB

std_mean_dataset

- generate samples according to the mean dataset

SYNOPSIS

DATASET *std_mean_dataset (NClassA, NClassB)

ARGUMENTS

int NClassA The number of samples for class A.
int NClassB The number of samples for class B.

RETURNS

The function returns NULL if an error occured, otherwise it returns a valid pointer to a DATASET structure.

FUNCTION

This function generates a 2-dimensional dataset with samples distributed according to the mean dataset. Samples of the mean dataset are drawn as follows:
Class A : Mean = (0.2, 0.2);   Sigma = Diag(0.33^2, 0.33^2)
Class B : Mean = (-0.2, -0.2); Sigma = Diag(0.33^2, 0.33^2)

where Diag is a diagonal matrix.

NOTE

The returned pointer points to a dataset which is a LABELSET and LEARNSET (see DATASET-flags.

SEE ALSO

random_meanset_a, random_meanset_b

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