Given a target density and a kernel estimator, evaluate the Kullback-Leibler divergence by Monte Carlo integration by simulating draws from the corresponding model.
simu_kldiv(x, b, kernel, model, B = 10000L, nrep = 10L)a vector of length 2 containing the mean and the standard deviation of the estimator.
a cube of dimension d by d by n containing the sample matrices which define the kernel matrix estimator
positive double, bandwidth parameter
integer between 1 and 6 indicating the simulation scenario
number of Monte Carlo replications, default to 10K