buildModelFuncs | R Documentation |
Build c++ particle filtering code for your R session.
buildModelFuncs(myDir, modelName, verbose = FALSE)
myDir |
directory with your three code files (i.e. model header, model source and export code) |
modelName |
your model name. Must be in all lowercase, and be a substring of the above-mentioned filenames |
verbose |
logical and passed in to inline::cxxfunction() |
an Rcpp Module object
## Not run:
# compile everything from scratch
svol_lev <- buildModelFuncs("~/Desktop", "svol_leverage")
# then use your model's log-likelihood and filtering functions
svol_lev$svol_leverage_bswc_approx_LL(rnorm(100), c(.9, 0.0, 1.0, -.2))
svol_lev$svol_leverage_bswc_approx_filt(rnorm(100), c(.9, 0.0, 1.0, -.2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.