- 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.