dnormalizer {nimbleSCR} | R Documentation |
Normalizing constant generator
Description
A normalizer used for normalizing nimble
distributions.
It is particularly useful for fitting dpoisppDetection_normal
and dpoisppLocalDetection_normal
models
using the semi-complete data likelihood approach.
Usage
dnormalizer(x, logNormConstant, log = 0)
rnormalizer(n, logNormConstant)
Arguments
x |
Input data, which can be any scalar and will not influence the return value. |
logNormConstant |
Normalizing constant on a log scale. |
log |
Logical. If |
n |
Integer specifying the number of realisations to generate. Only n = 1 is supported. |
Value
The normalizing constant.
Author(s)
Wei Zhang
Examples
dnormalizer(1, log(0.5), log = TRUE)
dnormalizer(0, log(0.5), log = FALSE)
[Package nimbleSCR version 0.2.1 Index]