Description Usage Arguments Value
View source: R/sir_forward_backward.R
Forward backward algorithm for the SIR model
1 | sir_forward_backward(y, model_config, num_samples = 1, all_xx = NULL)
|
y |
population observations |
model_config |
a list containing
|
num_samples |
number of backward samples needed, set to 1 if not specifed. If num.samples = 0, then no backward sample is computed. |
all_xx |
a 2**N by N matrix, representing the sample space, pre-calculated to save time |
a list containing
'log marginal likelihood and one backward sample'
'bs' : backward samples in a [N * num_observations * num_samples] array
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.