Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jeff Trull
graph-tool
Commits
54bdd816
Commit
54bdd816
authored
Jun 26, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamics: fix docstrings
parent
8e161132
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
src/graph_tool/dynamics/__init__.py
src/graph_tool/dynamics/__init__.py
+17
-17
No files found.
src/graph_tool/dynamics/__init__.py
View file @
54bdd816
...
...
@@ -227,7 +227,7 @@ class SIState(EpidemicStateBase):
1. If :math:`s_i(t) = 0`, we have :math:`s_i(t+1) = 1` with probability
.. math::
(1-r_i)\left
(1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right)
+ r_i,
(1-r_i)\left
[1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right]
+ r_i,
otherwise :math:`s_i(t+1) = 0`.
...
...
@@ -296,16 +296,16 @@ class SISState(DiscreteStateBase):
----------
g : :class:`~graph_tool.Graph`
Graph to be used for the dynamics
beta : ``float`` (optional, default: ``1.``)
beta : ``float``
or :class:`~graph_tool.EdgePropertyMap`
(optional, default: ``1.``)
Transmission probability.
gamma : ``float`` (optional, default: ``.1``)
gamma : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
Recovery probability.
r : ``float`` (optional, default: ``0.``)
r : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``0.``)
Spontaneous infection probability.
exposed : ``boolean`` (optional, default: ``False``)
If ``True``, an SEIS model is simulated, with an additional "exposed"
state.
epsilon : ``float`` (optional, default: ``.1``)
epsilon : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
Susceptible to exposed transition probability. This only has an
effect if ``exposed=True``.
v0 : ``int`` or :class:`~graph_tool.Vertex` (optional, default: ``None``)
...
...
@@ -335,7 +335,7 @@ class SISState(DiscreteStateBase):
1. If :math:`s_i(t) = 0`, we have :math:`s_i(t+1) = 1` with probability
.. math::
(1-r_i)\left
(1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right)
+ r_i,
(1-r_i)\left
[1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right]
+ r_i,
otherwise :math:`s_i(t+1) = 0`.
...
...
@@ -405,16 +405,16 @@ class SIRState(DiscreteStateBase):
----------
g : :class:`~graph_tool.Graph`
Graph to be used for the dynamics
beta : ``float`` (optional, default: ``1.``)
beta : ``float``
or :class:`~graph_tool.EdgePropertyMap`
(optional, default: ``1.``)
Transmission probability.
gamma : ``float`` (optional, default: ``.1``)
gamma : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
Recovery probability.
r : ``float`` (optional, default: ``0.``)
r : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``0.``)
Spontaneous infection probability.
exposed : ``boolean`` (optional, default: ``False``)
If ``True``, an SEIR model is simulated, with an additional "exposed"
state.
epsilon : ``float`` (optional, default: ``.1``)
epsilon : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
Susceptible to exposed transition probability. This only has an
effect if ``exposed=True``.
v0 : ``int`` or :class:`~graph_tool.Vertex` (optional, default: ``None``)
...
...
@@ -444,7 +444,7 @@ class SIRState(DiscreteStateBase):
1. If :math:`s_i(t) = 0`, we have :math:`s_i(t+1) = 1` with probability
.. math::
(1-r_i)\left
(1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right)
+ r_i,
(1-r_i)\left
[1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right]
+ r_i,
otherwise :math:`s_i(t+1) = 0`.
...
...
@@ -525,18 +525,18 @@ class SIRSState(DiscreteStateBase):
----------
g : :class:`~graph_tool.Graph`
Graph to be used for the dynamics
beta : ``float`` (optional, default: ``1.``)
beta : ``float``
or :class:`~graph_tool.EdgePropertyMap`
(optional, default: ``1.``)
Transmission probability.
gamma : ``float`` (optional, default: ``.1``)
gamma : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
I to R recovery probability.
mu : ``float`` (optional, default: ``.1``)
mu : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
R to S recovery probability.
r : ``float`` (optional, default: ``0.``)
r : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``0.``)
Spontaneous infection probability.
exposed : ``boolean`` (optional, default: ``False``)
If ``True``, an SEIRS model is simulated, with an additional "exposed"
state.
epsilon : ``float`` (optional, default: ``.1``)
epsilon : ``float``
or :class:`~graph_tool.VertexPropertyMap`
(optional, default: ``.1``)
Susceptible to exposed transition probability. This only has an
effect if ``exposed=True``.
v0 : ``int`` or :class:`~graph_tool.Vertex` (optional, default: ``None``)
...
...
@@ -567,7 +567,7 @@ class SIRSState(DiscreteStateBase):
1. If :math:`s_i(t) = 0`, we have :math:`s_i(t+1) = 1` with probability
.. math::
(1-r_i)\left
(1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right)
+ r_i,
(1-r_i)\left
[1-\prod_j(1-\beta_{ij})^{A_{ij}\delta_{s_j(t),1}}\right]
+ r_i,
otherwise :math:`s_i(t+1) = 0`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment