createPFCPPTemplates {pfr} | R Documentation |
Create c++ template files for bootstrap filters (with or without covariates), auxiliary particle filters, sequential importance sampling with resampling filters, or Rao-Blackwellized/Marginal particle filters.
Description
Create c++ template files for bootstrap filters (with or without covariates), auxiliary particle filters, sequential importance sampling with resampling filters, or Rao-Blackwellized/Marginal particle filters.
Usage
createPFCPPTemplates(modname, pfAlgo, fileDir, openNow = TRUE)
Arguments
modname |
name of model in all lowercase |
pfAlgo |
Either "BSF", "APF", "BSWC", "SISR", "RBPFHMM", or "RBPFKALMAN" |
fileDir |
where to save files. Not saved if NULL (but three files are returned in list). |
openNow |
TRUE if you want to open this now in RStudio. Ignored if fileDir is NULL. |
Value
NULL if saving files, otherwise a list with three character vectors
Examples
# return in list of character strings
createPFCPPTemplates("coolmod", "BSF", fileDir = NULL)
## Not run:
# save three files to Desktop, and
# begin editing them in rstudio IDE
createPFCPPTemplates("coolmod", "BSF", fileDir = "~/Desktop/")
## End(Not run)
[Package pfr version 1.0.1 Index]