gAtTime: gAtTime

Description Usage Arguments Details Value Author(s)

View source: R/sirgraph.R

Description

recalculate state of network at given time

Usage

1
gAtTime(g, t)

Arguments

g

an SIR graph

t

a time point

Details

when a simulation has run, the graph stores the infection and recovery times, and the final states. This function sets the states to the values correct at the given time by comparison with the infection and recovery times. It also sets the time of the graph but does not change the infection and recovery times.

Value

the SIR graph at that time

Author(s)

Barry S Rowlingson


barryrowlingson/sirgraph documentation built on April 8, 2020, 7:19 p.m.