Kullback-Leibler divergence (Relative Entropy)
Usage
relative_entropy(h, p, a, b)
Arguments
- h
density of a distribution
- p
density of the reference distribution
- a
start index to subset density
- b
end index to subset density
Value
numeric, relative entropy of the distributions h
and p
between a
and b