The Complete SPRLIB & ANNLIB

calc_classerror

- calculate the fraction of badly classified samples (linear classifier)

SYNOPSIS

double calc_classerror ()

RETURNS

The function returns the fraction of badly classified samples if no error occured, otherwise it returns a negative number.

FUNCTION

This function reads the local variables, see ESTERROR-variables in which the classification results are stored. A pattern should have been classified using the add_classerror function in order for this function to work properly.

NOTE

After calling this function the internal variables are reset, unless an error occured.

SEE ALSO

add_classerror, addq_classerror, calcq_classerror, ESTERROR-variables

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