Plug-in KL divergence estimator for samples from discrete distributions
Source:R/kld-estimation-discrete.R
kld_est_discrete.Rd
Plug-in KL divergence estimator for samples from discrete distributions
Arguments
- X, Y
n
-by-d
andm
-by-d
matrices or data frames, representingn
samples from the true discrete distribution \(P\) andm
samples from the approximate discrete distribution \(Q\), both ind
dimensions. Vector input is treated as a column matrix. ArgumentY
can be omitted if argumentq
is given (see below).- q
The probability mass function of the approximate distribution \(Q\). Currently, the one-sample problem is only implemented for
d=1
.