- compute the squared distance between two patterns (LOCAL)
SYNOPSIS
double d
(p1, p2)
ARGUMENTS
int
p1
The number of the first pattern.
int
p2
The number of the second pattern.
RETURNS
The squared distance between p1 and p2 is returned.
FUNCTION
This function computes the squared distance between two patterns in the
learning space. The function uses structures allocated by parzen_init.
Both p1 and p2 are in vector format.
NOTE
For this function to work the Parzen estimator has to be initialized.
This can be done using parzen_init.