The Complete SPRLIB & ANNLIB

fisherq_dataset

- compute the decision function parameters on a given dataset

SYNOPSIS

int fisherq_dataset (lset, ClassA, ClassB, c, W2, W1, b)

ARGUMENTS

DATASET *lset The dataset used to compute the coefficients.
int ClassA The representation of class A.
int ClassB The representation of class B.
double c The quotient of the apriori probabilities.
double **W2 The quadratic coefficient, a matrix of size [1..n][1..n].
double *W1 The linear coefficient, a vector of size [1..n].
double *b the constant coefficient.

RETURNS

The function returns TRUE if an error occured, and FALSE otherwise. If no error was detected the parameters W2, W1 and b contain valid values for the quadratic decision function.

FUNCTION

The function computes the coefficients of the quadratic decision function, see fisherq for a given dataset lset.

NOTE

The variables W1 and b are in vector format, the variable W2 is in matrix format.

SEE ALSO

fisherq, weight0_vector

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