The Complete SPRLIB & ANNLIB

d

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

SEE ALSO

parzen_init

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