simInit: Sample from initial distributions

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Simulates the initial number of susceptible and infected individuals from independent Poisson initial distributions.

Usage

1
simInit(n, startState)

Arguments

n

Number of particles

startState

Numeric vector of size two containing the means of initial distributions for the numbers of susceptible and infected individuals respectively

Value

Matrix of dimension n by 2, where each row is the initial state for a particle trajectory


vnminin/bayessir documentation built on May 3, 2019, 6:17 p.m.