kullback | R Documentation |
Undefined if zero counts/proportions
kullback(x, y, base = 2, standardize = TRUE)
x |
Vector of counts or proportions of N elements |
y |
Second vector of counts or proportions of N elements |
base |
Base of logarithm |
standardize |
If TRUE divide x and y by sum(x) and sum(y) |
Kullback-Leibler divergence
kullback(1:3,3:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.