init_startnodes: Initially Infectious Individuals

Description Usage Arguments Details Value

Description

init_startnodes returns an integer array of randomly selected values within a given range.

Usage

1

Arguments

N

Number of vertices / nodes in the network.

i0

Number of initially infectious.

Details

This functon is a wrapper around sample to generate i0 random integers in the interval 1:10. init_startnodes(N, i0) is equivalent to sample(1:10, i0, replace = FALSE).

Value

Integer array of selected individuals.


tjtnew/simnetR documentation built on May 12, 2019, 4:20 p.m.