sis_simulation.matrix: Run a Susceptible -> Infective - Susceptible (SIS) simulation

Description Usage Arguments Value

Description

sis_simulation.matrix takes a graph represented by an adjacency matrix and simulates an SIS simulation for a given rate of infection, rate of recovery and duration.

Usage

1
2
## S3 method for class 'matrix'
sis_simulation(graph, tau, gam, max_time, i0)

Arguments

graph

The adjacency matrix representation of the network.

tau

Per link infection rate.

gam

Per node recovery rate.

max_time

Maximum simulation runtime.

i0

Initial number of infective individuals

Value

list containing timeseries of events and the corresponding timeseries of number of infectious individual.


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