The Complete SPRLIB & ANNLIB
sample_distance
- compute the Euclidean between two SPRANNLIB samples
SYNOPSIS
double sample_distance
(sample1, sample2, dim)
ARGUMENTS
SAMPLE
*sample1
The first sample.
SAMPLE
*sample2
The second sample.
int
dim
The dimension of the feature space.
RETURNS
The function returns the Euclidean distance between two samples in SPRANNLIB format.
FUNCTION
The function calculates the euclidean distance between the input vectors of two SPRANNLIB samples.
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998