The Complete SPRLIB & ANNLIB

knn_init

- initialization routine for the k-nearest neighbour classifier

SYNOPSIS

knn_init (dset)

ARGUMENTS

DATASET *dset The dataset on which the k-nearest neighbour classifier is determined.

RETURNS

TRUE if an error occurred, and FALSE otherwise.

FUNCTION

This routine is required for the initizalization of the k-nearest neighbour classifier. It takes as an argument a dataset and performs the necessary memory allocations to be able to perform nearest neighbour classifications and other nearest neighbour routines. The dataset is required to be either a LEARNSET or an IOSET (see DATASET-flags).

NOTE

Memory allocated by knn_init must be freed using knn_free.

SEE ALSO

knn_classify

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