calculate the distance btw two dictionaries
1 2 | dictionary.distance(A, B, pa = 1, pb = 1, emd = 1, same = 0,
tmpdist = NULL)
|
A |
first dictionary: n1 by p matrix |
B |
second dictionary: n2 by p matrix |
pa |
probability distribution vector of dictionary A |
pb |
probability distribution vector of dictionary B |
emd |
whether to estimate the distance btw two load shapes as EMD (earth mover distance) or L1 distance/2 |
same |
whether A and B are the same dictionaries or not |
tmpdist |
user can provide the distance matrix (n1 by n2) btw the dictionaries A and B if already calculated |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.