View source: R/kld-analytical.R
kld_uniform_gaussian | R Documentation |
This function computes D_{KL}(p||q)
, where p\sim \text{U}(a,b)
and q\sim \mathcal{N}(\mu,\sigma^2)
.
kld_uniform_gaussian(a = 0, b = 1, mu = 0, sigma2 = 1)
a , b |
Parameters of uniform (true) distribution |
mu , sigma2 |
Parameters of Gaussian (approximate) distribution |
A scalar (the Kullback-Leibler divergence)
kld_uniform_gaussian(a = 0, b = 1, mu = 0, sigma2 = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.