Description Usage Arguments Value
Compute Kullback Leibler divergence between biologic null distribution vs. proposed null distribution
1 2 | myKLdivergenece(nulldens, dens, integral = c(-6, 6), precision = 0.001,
method = c("MixNorm", "biGaussianMean0"))
|
nulldens |
A list, mu: mean location for each of normal density; sd: sd value for each of normal density; proportion: proportion for each normal density. |
dens |
A list, mu: mean location for each of normal density; sd: sd value for each of normal density; proportion: proportion for each normal density. |
integral |
A two element vector, the first element is integration lower bound; the second element is integration upper bound. |
precision |
A number. The numerical precision for integration calculating. Default=0.001 |
method |
The way proposal density is calculated from wether it is "MixNorm" or "biGaussianMean0". |
A number, KL distance between nulldens and dens
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.