Plug-in KL divergence estimator for samples from discrete distributions
Source:R/kld-estimation-discrete.R
kld_est_discrete.RdPlug-in KL divergence estimator for samples from discrete distributions
Arguments
- X, Y
n-by-dandm-by-dmatrices or data frames, representingnsamples from the true discrete distribution \(P\) andmsamples from the approximate discrete distribution \(Q\), both inddimensions. Vector input is treated as a column matrix. ArgumentYcan be omitted if argumentqis given (see below).- q
The probability mass function of the approximate distribution \(Q\). Currently, the one-sample problem is only implemented for
d=1.