Analytical KL divergence between a uniform and a Gaussian distribution
Source:R/kld-analytical.R
kld_uniform_gaussian.Rd
This function computes \(D_{KL}(p||q)\), where \(p\sim \text{U}(a,b)\) and \(q\sim \mathcal{N}(\mu,\sigma^2)\).
R/kld-analytical.R
kld_uniform_gaussian.Rd
This function computes \(D_{KL}(p||q)\), where \(p\sim \text{U}(a,b)\) and \(q\sim \mathcal{N}(\mu,\sigma^2)\).