Kullback-Leibler Divergence (Cross-entropy)
divergence(x, y, type = c("Kullback-Leibler", "cross-entropy"))
x | a vector of integer values, defining observed |
---|---|
y | a vector of integer values, defining estimates |
type | Type of divergence statistic c("Kullback-Leibler", "cross-entropy") |
single value vector with divergence statistic
Jeffrey S. Evans <jeffrey_evans@tnc.org>
#>#> [1] 0.1673976divergence(x, y, type = "cross-entropy")#>#> [1] 4.115996