Distances


Functions

int vec_distance_hamming (vec v1, vec v2)
int ivec_distance_hamming (ivec v1, ivec v2)
int bvec_distance_hamming (bvec v1, bvec v2)
double vec_ser (vec v1, vec v2)
double ivec_ser (ivec v1, ivec v2)
double bvec_ber (bvec v1, bvec v2)
int ivec_distance_levenshtein (ivec v1, ivec v2, int cost_ins, int cost_del, int cost_sub)
double vec_distance_norm (vec v1, vec v2, double norm)
double mat_distance_norm (mat v1, mat v2, double norm)
int ivec_distance_norm1 (ivec v1, ivec v2)
double vec_distance_mse (vec v1, vec v2, double rec_value)
double mat_distance_mse (mat v1, mat v2, double rec_value)
double ivec_distance_mse (ivec v1, ivec v2, double rec_value)
double imat_distance_mse (imat v1, imat v2, double rec_value)
long ivec_distance_sqr (ivec v1, ivec v2)
double vec_distance_kullback_leibler (vec pdf1, vec pdf2)
mat compute_distance_matrix (mat v, double nr)
double spvec_distance_norm1 (ivec svi1, vec sv1, ivec svi2, vec sv2)
int spivec_distance_norm1 (ivec svi1, ivec sv1, ivec svi2, ivec sv2)
double spvec_distance_norm2 (ivec svi1, vec sv1, ivec svi2, vec sv2)
double spvec_distance_sqr (ivec svi1, vec sv1, ivec svi2, vec sv2)
int spivec_distance_sqr (ivec svi1, ivec sv1, ivec svi2, ivec sv2)

Detailed Description


Function Documentation

double bvec_ber ( bvec  v1,
bvec  v2 
)

Definition at line 154 of file distance.c.

References bvec_length().

int bvec_distance_hamming ( bvec  v1,
bvec  v2 
)

Definition at line 71 of file distance.c.

References bvec_length().

mat compute_distance_matrix ( mat  v,
double  nr 
)

Definition at line 405 of file distance.c.

References mat_height(), mat_new(), and vec_distance_norm().

double imat_distance_mse ( imat  v1,
imat  v2,
double  rec_value 
)

Definition at line 338 of file distance.c.

References imat_height(), ivec_distance_mse(), and ivec_null.

int ivec_distance_hamming ( ivec  v1,
ivec  v2 
)

Definition at line 51 of file distance.c.

References ivec_length().

int ivec_distance_levenshtein ( ivec  v1,
ivec  v2,
int  cost_ins,
int  cost_del,
int  cost_sub 
)

Definition at line 177 of file distance.c.

References imat_delete(), imat_new(), imat_set(), and ivec_length().

Referenced by main().

double ivec_distance_mse ( ivec  v1,
ivec  v2,
double  rec_value 
)

Definition at line 311 of file distance.c.

References ivec_length().

Referenced by imat_distance_mse().

int ivec_distance_norm1 ( ivec  v1,
ivec  v2 
)

Definition at line 244 of file distance.c.

References ivec_length().

long ivec_distance_sqr ( ivec  v1,
ivec  v2 
)

Definition at line 363 of file distance.c.

References ivec_length().

double ivec_ser ( ivec  v1,
ivec  v2 
)

Definition at line 133 of file distance.c.

References ivec_length().

double mat_distance_mse ( mat  v1,
mat  v2,
double  rec_value 
)

Definition at line 287 of file distance.c.

References mat_height(), vec_distance_mse(), and vec_null.

double mat_distance_norm ( mat  v1,
mat  v2,
double  norm 
)

Definition at line 229 of file distance.c.

References mat_height(), and mat_width().

int spivec_distance_norm1 ( ivec  svi1,
ivec  sv1,
ivec  svi2,
ivec  sv2 
)

Definition at line 464 of file distance.c.

References ivec_length().

int spivec_distance_sqr ( ivec  svi1,
ivec  sv1,
ivec  svi2,
ivec  sv2 
)

Definition at line 553 of file distance.c.

References ivec_length().

double spvec_distance_norm1 ( ivec  svi1,
vec  sv1,
ivec  svi2,
vec  sv2 
)

Definition at line 424 of file distance.c.

References ivec_length(), and vec_length().

double spvec_distance_norm2 ( ivec  svi1,
vec  sv1,
ivec  svi2,
vec  sv2 
)

Definition at line 601 of file distance.c.

References spvec_distance_sqr().

double spvec_distance_sqr ( ivec  svi1,
vec  sv1,
ivec  svi2,
vec  sv2 
)

Definition at line 505 of file distance.c.

References ivec_length(), and vec_length().

Referenced by spvec_distance_norm2().

int vec_distance_hamming ( vec  v1,
vec  v2 
)

Definition at line 31 of file distance.c.

References vec_length().

Referenced by main().

double vec_distance_kullback_leibler ( vec  pdf1,
vec  pdf2 
)

Definition at line 381 of file distance.c.

References INT_MAX, is_valid_pdf(), and vec_length().

Referenced by source_estim_GG_from_histo().

double vec_distance_mse ( vec  v1,
vec  v2,
double  rec_value 
)

Definition at line 258 of file distance.c.

References vec_length().

Referenced by main(), mat_distance_mse(), and test_quantizer().

double vec_distance_norm ( vec  v1,
vec  v2,
double  norm 
)

Definition at line 216 of file distance.c.

References vec_length().

Referenced by compute_distance_matrix().

double vec_ser ( vec  v1,
vec  v2 
)

Definition at line 112 of file distance.c.

References vec_length().


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau