View source: R/makeConstantNimbleFunction.R
makeConstantNimbleFunction | R Documentation |
nimble
constant function generatorCreate 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.
makeConstantNimbleFunction(inValue, isDouble = TRUE)
inValue |
Scalar to be set as a constant |
isDouble |
Logical. If |
An object of the type returned by nimbleFunction
that can be called inside
other nimble
code to retrieve the value of the global constant.
Joseph D. Chipperfield
maxMNormTrunc <- makeConstantNimbleFunction(0.0001, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.