The Complete SPRLIB & ANNLIB

fisher_dataset

- compute the fisher discriminant function using a dataset

SYNOPSIS

int fisher_dataset (lset, ClassA, ClassB, c, W, b)

ARGUMENTS

DATASET *lset The dataset on which the discriminant has to be computed.
int ClassA The representation of class A.
int ClassB The representation of class B.
double c The factor for apriori probabilities.
double *W The linear term, a vector of size [1..lset->NumInputs].
double b The constant component.

RETURNS

The function returns TRUE if an error occured. In case of no error the function returns FALSE and W and b contain valid values.

FUNCTION

This function computes the Fisher linear discriminant using a dataset represented by lset. Furthermore it needs the representations for both classes and their apriori probabilities, c. It calculates the covariances and means using mean_var_dataset.

NOTE

The variables W and b are in vector format.

SEE ALSO

fisher, weight_vector, mean_var_dataset

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