divergence

0th

Percentile

divergence

Kullback-Leibler Divergence (Cross-entropy)

Usage
divergence(x, y, type = c("Kullback-Leibler", "cross-entropy"))
Arguments
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")

Value

single value vector with divergence statistic

Aliases
  • divergence
Examples
# NOT RUN {
x <- round(runif(10,1,4),0)
y <- round(runif(10,1,4),0)

divergence(x, y) 
divergence(x, y, type = "cross-entropy") 

# }
Documentation reproduced from package spatialEco, version 1.3-2, License: GPL-3

Community examples

Looks like there are no examples yet.