distance {pdc} | R Documentation |
Functions to calculate distances/dissimilarities between codebooks.
hellingerDistance(x,y)
squaredHellingerDistance(x,y)
symmetricAlphaDivergence(x,y)
x |
a codebook |
y |
a codebook |
Note: The symmetric alpha-divergence is proportional to the Squared Hellinger distance, and is the default divergence between codebooks.
Returns a numeric dissimilarity between two codebooks.
Andreas Brandmaier brandmaier@mpib-berlin.mpg.de
x <- codebook(c(sin(1:100)),m=3)
y <- codebook(c(sin(1:100*0.1)),m=3)
hellingerDistance(x,y)