Description Usage Arguments Value See Also Examples
Given an probability of infection, generates a uniform distribution giving probability of infection on each day. From day 0 to t0, has 0 probability of infection. t0 to t1 has finite probability. t1 to end has 0 probability.
1 | generate_toy_inc(p_inf, end, t0, t1)
|
p_inf |
Proportion of populatino that should become infected |
end |
final day of the vector (ie. length) |
t0 |
first day of possible infection |
t1 |
last day of possible infection |
vector with probability of infection on each day
1 | generate_toy_inc(0.4, 200, 50, 150)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.