epiworldpy.ModelSIS#
- class epiworldpy.ModelSIS(self: epiworldpy._core.ModelSIS, name: str, prevalence: float, transmission_rate: float, recovery_rate: float)#
A model wth two compartments: susceptible and infectious.
Create a new SIS model.
- __init__(self: epiworldpy._core.ModelSIS, name: str, prevalence: float, transmission_rate: float, recovery_rate: float) None #
Create a new SIS model.
Methods
__init__
(self, name, prevalence, ...)Create a new SIS model.
add_entity
(self, arg0)add_state
(self, lab, fun)add_tool
(self, tool)Adds a tool to modify the model.
add_virus
(self, virus)Adds a virus to the model
agents_from_edgelist
(self, source, target, ...)Populatates the model's agents from an edge list.
agents_smallworld
(self, n, k, d, p)Populate the model without an edgelist.
get_db
(self)Get the data from the model run, which may then be queried with associated methods.
get_entity
(self, arg0, arg1)get_name
(self)Get the name of the type of model.
get_states
(self)print
(self[, summary])Print a summary of the model run.
run
(self, ndays[, seed])Run the model according to the previously specific parameters.