The Complete SPRLIB & ANNLIB

malloc_sortspace

- memory allocation routine for the k-nearest neighbour classifier (LOCAL)

SYNOPSIS

in malloc_sortspace (n, nelm)

ARGUMENTS

int n The dimensionality of a pattern to be allocated.
int nelm The number of patterns to be allocated.

RETURNS

TRUE if no memory is allocated, FALSE otherwise.

FUNCTION

The malloc_sortspace routine is used for allocation of all the samples used in the k-nearest neighbour routine. This allocated space is used to sort the samples when used for the nearest neighbour computation. The function uses n and nelm to correctly allocate the space.

SEE ALSO

knn_init

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