Description Usage Arguments Details Value Note Author(s) References Examples
Returns the Jensen-Shannon Distance (square root of JS divergence) between two probability vectors.
1 |
p |
A vector of probabilities |
q |
A vector of probabilities |
Should not be called directly by user.
Returns the JS distance as a numeric
None
Loyal A. Goff
None
1 2 3 4 5 6 | p<-sample(1:5000,20)
q<-sample(1:5000,20)
p<-makeprobsvec(p)
q<-makeprobsvec(q)
JSdistVec(p,q)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.