View source: R/template_creators.R
createPFCPPTemplates | 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.
createPFCPPTemplates(modname, pfAlgo, fileDir, openNow = TRUE)
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. |
NULL if saving files, otherwise a list with three character vectors
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.