makeConstantNimbleFunction {nimbleSCR} | R Documentation |
nimble
constant function generator
Description
Create global constants that can be used in nimble
functions.
As of nimble
0.6-12 there does not appear to be official support for global constants.
This function creates functions that can be used in place of constants.
Usage
makeConstantNimbleFunction(inValue, isDouble = TRUE)
Arguments
inValue |
Scalar to be set as a constant |
isDouble |
Logical. If |
Value
An object of the type returned by nimbleFunction
that can be called inside
other nimble
code to retrieve the value of the global constant.
Author(s)
Joseph D. Chipperfield
Examples
maxMNormTrunc <- makeConstantNimbleFunction(0.0001, TRUE)
[Package nimbleSCR version 0.2.1 Index]