The Complete SPRLIB & ANNLIB

nearest_neighbour

- compute the class label of the nearest neighbour

SYNOPSIS

int nearest_neighbour (sample1, dataset)

ARGUMENTS

SAMPLE *sample1 The sample of which the class has to be determined.
DATASET *dataset The set of samples.

RETURNS

The function returns the class label of the nearest neighbour of sample sample1. In case of an error it returns TRUE.

FUNCTION

The function computes the label of the nearest neighbour of sample sample1. It computes the nearest neighbour in the feature space.

SEE ALSO

knn_classify

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