Description Usage Arguments Details Value Author(s) References
Computes the normalizing constant in the log scale usign the LogSumExp trick to avoid numerical issues (See details).
1 | compute_logz(loglambda, nu)
|
loglambda |
A vector of logarithm of the λ parameter. |
nu |
A vector of dispersion parameters ν. |
logspace_add(a, b) = log(exp(a) + exp(b)) = b + log(1 +
exp(a - b))
, where b > a
.
A vector with the logarithms of the resulting constants.
Eduardo Jr <edujrrib@gmail.com>
Wikipedia, LogSumExp. http://rstudio.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.