Description Usage Arguments Value
Particle filter function - runs model in steps between each observed data point before using weighted re-sampling of model state at each step to start next
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
n |
number of particles |
iState |
function for calculating initial state of particles |
stepFun |
function for taking parmeters and time point, running model in steps and outputting model state |
obsData |
observed data to fit model to |
prms |
model parameters |
resM |
True/False whether to output likelihood values or results of simulation for plotting figures |
cluster |
T/F if true, using the cluster if false, run locally |
likeFunc |
likelihood function - obsolete |
if resM = F log likelihood value, if resM = T mean results of simulation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.