myKLdivergenece: myKLdivergenece

Description Usage Arguments Value

View source: R/bayeslabel.R

Description

Compute Kullback Leibler divergence between biologic null distribution vs. proposed null distribution

Usage

1
2
myKLdivergenece(nulldens, dens, integral = c(-6, 6), precision = 0.001,
  method = c("MixNorm", "biGaussianMean0"))

Arguments

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".

Value

A number, KL distance between nulldens and dens


BANFF documentation built on May 29, 2017, 11:59 a.m.

Related to myKLdivergenece in BANFF...