kld_uniform {kldest} | R Documentation |
Analytical KL divergence for two uniform distributions
Description
This function computes , where
and
, with
.
Usage
kld_uniform(a1, b1, a2, b2)
Arguments
a1 , b1 |
Range of true uniform distribution |
a2 , b2 |
Range of approximate uniform distribution |
Value
A scalar (the Kullback-Leibler divergence)
Examples
kld_uniform(a1 = 0, b1 = 1, a2 = 0, b2 = 2)
[Package kldest version 1.0.0 Index]