NAME
euclidean_distance - Computes the Euclidean distance between two features.
SYNOPSIS
#include "lsm/lsm_emd.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int euclidean_distance
(
Vector *f1_vp,
Vector *f2_vp,
double *distance_ptr
);
DESCRIPTION
This routine computes the Euclidean distance between two features which are
implemented as KJB Vectors. Included as the default distance function used
by the earthmover's distance code.
RETURNS
NO_ERROR on success; ERROR on failure, with a descriptive error message
being set.
RELATED
get_eathmover_distance
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Lindsay Martin
DOCUMENTER
Lindsay Martin
SEE ALSO
get_earthmover_distance
,
get_target_signature
,
free_signature
,
copy_signature
,
set_signature_features
,
set_signature_weights
,
get_target_signature_db