Description Usage Arguments Details Value Author(s) See Also
pompBuilder
is a tool for producing compiled pomp
objects.
It was an early attempt to facilitate the use of compiled codes but has been replaced by the more flexible use of Csnippet
s in the regular pomp
constructor function.
It is not being actively maintained: users are encouraged to migrate to using Csnippet
s.
1 2 3 4 5 6 7 |
data, times, t0 |
The data, times, and zero-time.
See |
name |
character; the stem of the name for the files that will be produced. |
statenames, paramnames |
names of state-variables and parameters, respectively |
tcovar, covar |
optional.
|
rmeasure, dmeasure |
C codes implementing the measurement model |
step.fn, step.fn.delta.t |
|
skeleton, skeleton.type, skelmap.delta.t |
|
fromEstimationScale, toEstimationScale |
optional C codes that implement parameter transformations.
|
rprior, dprior |
C codes implementing the prior distribution |
globals |
optional. C codes here will be included verbatim in the generated code and compiled into the shared-object library. |
... |
additional arguments are passed to |
save |
logical; if TRUE, the resulting C code will be saved in the current working directory. The shared-object library will also be created in this directory. If FALSE, the C code and shared-object library will be created in the temporary directory. |
pompBuilder
with save=TRUE
assumes that files can be written to the current working directory and that dynamic shared objects can be compiled and linked, i.e., that R CMD SHLIB
will work.
This will not typically be the case in out-of-the-box Windows installations.
The constructed pomp
object.
A side-effect is the writing and compilation of a C code into a dynamics shared object.
Parallel computing caution:
note that, since a side-effect of running pompBuilder
is the writing and compilation of a file, caution must be used when running parallel computations.
Simultaneous execution of pompBuilder
on nodes sharing a common disk will cause all nodes to attempt to write the same file at the same time;
the results will be undefined.
If multiple nodes are to work on the same pomp
object built by pompBuilder
, first run pompBuilder
once (with save = TRUE
) to write the C file and compile it into a dynamic shared object file.
The pomp
object returned by pompBuilder
can then be shared with all worker nodes.
Aaron A. King kingaa at umich dot edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.