kl: Kullback-Leibler Divergence
Description
Get the KL Divergence between two discrete distributions
Usage
kl(x, y, ...)# S3 method for default
kl(x, y, ...)
# S3 method for tables
kl(x, y, ...)
Value
a numberic value, vector or matrix of KL-divergences.
Arguments
- x, y
vectors (of probabilities)
- ...
other arguments to methods