The Complete SPRLIB & ANNLIB

duinset_error

- compute the classification error on the Duin set using a linear discriminant

SYNOPSIS

double duinset_error (k, w, c)

ARGUMENTS

int k Dimensionality of the duinset.
double *w Linear term, a vector of size [1..k].
double c Constant.

RETURNS

The returns the fraction wrongly classified samples for the duinset standard classes.

FUNCTION

The function calculates the fraction of the sample wrongly classified by a linear discriminant function. This linear function is described by two parameters w and c, combined they constitute the linear classifier F(x) = w*x + c. The sample used for classification are drawn from the standard Duin dataset.

SEE ALSO

random_duinset_a, random_duinset_b, duin_dataset

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