The Complete SPRLIB & ANNLIB

weight_vector

- compute the Fisher discriminant vector

SYNOPSIS

int weight_vector (Ka, Kb, Ma, Mb, n, W)

ARGUMENTS

double **Ka Covariance matrix for class A, a matrix of size [1..n][1..n].
double **Ka Covariance matrix for class B, a matrix of size [1..n][1..n].
double *Ma Mean vector for class A, a vector of size [1..n].
double *Mb Mean vector for class B, a vector of size [1..n].
int n The dimensionality of the patterns.
double **W The discriminant (hyper)plane, a matrix of size [1..n][1..n].

RETURNS

If no error occurs the function returns FALSE and the variable W contains a valid representation for the hyperplane. In case of an error the function returns TRUE.

FUNCTION

The function computes a normalized Fisher discriminant (hyper)plane given the covariances and means of both class A and class B.

NOTE

The matrices Ka and Kb are in matrix format and Ma ,W and Mb are in vector format.

SEE ALSO

fisher

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