sample_grid_scan | R Documentation |
Take a grid search produced by scan_R0_date
and
sample n_sample_pairs
from the parameter grid uses based
on their probability. For each parameter pair chosen, run particle
filter with num_particles
and sample 1 trajectory
sample_grid_scan( scan_results, n_sample_pairs = 10, n_particles = 100, forecast_days = 0, full_output = FALSE )
scan_results |
Output of |
n_sample_pairs |
Number of parameter pairs to be sampled. This will determine how many trajectories are returned. Integer. Default = 10. This will determine how many trajectories are returned. |
n_particles |
Number of particles. Positive Integer. Default = 100 |
forecast_days |
Number of days being forecast. Default = 0 |
full_output |
Logical, indicating whether the full model output, including the state and the declared outputs are returned. Deafult = FALSE |
list
. First element (trajectories) is a 3
dimensional array of trajectories (time, state, tranjectories). Second
element (param_grid) is the parameters chosen when sampling from the
scan_results
grid and the third dimension (inputs) is a list of
model inputs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.