Skip to content

Commit fea01e9

Browse files
authored
1228 Update coding guidelines and correct readme format (#1254)
1 parent 39b29bc commit fea01e9

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

docs/source/development.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Includes:
7474
Code Documentation:
7575

7676
- Use doxygen docstrings. In particular
77+
7778
- Write an explicit `@brief` for method documentations. Continue the detailed description in the next line.
7879
- Always start a line with a capital letter and end with a dot.
7980
- The plural of classes, objects etc. should be denoted with a `%` sign between class name and plural s, e.g., `Household%s`. This is in order to visualize it correctly and provide a link on the doxygen page.

docs/source/models/sde_sirs.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ Below is an overview of the model architecture and its compartments.
1616
.. image:: https://github.com/SciCompMod/memilio/assets/69154294/bdde5ca3-cd7d-4695-8704-03a712c92ff7
1717
:alt: SIR_model
1818

19-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
20-
| Mathematical variable | C++ variable name | Description |
21-
+===============================+===============================================+==============================================================================================+
22-
| :math:`\phi` | ``ContactPatterns`` | Daily contact rate / Number of daily contacts. |
23-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
24-
| :math:`\rho` | ``TransmissionProbabilityOnContact`` | Transmission risk for people located in the Susceptible compartment. |
25-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
26-
| :math:`N` | ``populations.get_total()`` | Total population. |
27-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
28-
| :math:`T_{I}` | ``TimeInfected`` | Time in days an individual stays in the Infected compartment. |
29-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
30-
| :math:`T_{R}` | ``TimeImmune`` | Time in days an individual stays in the Recovered compartment before becoming Susceptible again. |
31-
+-------------------------------+-----------------------------------------------+----------------------------------------------------------------------------------------------+
19+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
20+
| Mathematical variable | C++ variable name | Description |
21+
+===============================+===============================================+========================================================================================================+
22+
| :math:`\phi` | ``ContactPatterns`` | Daily contact rate / Number of daily contacts. |
23+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
24+
| :math:`\rho` | ``TransmissionProbabilityOnContact`` | Transmission risk for people located in the Susceptible compartment. |
25+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
26+
| :math:`N` | ``populations.get_total()`` | Total population. |
27+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
28+
| :math:`T_{I}` | ``TimeInfected`` | Time in days an individual stays in the Infected compartment. |
29+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
30+
| :math:`T_{R}` | ``TimeImmune`` | Time in days an individual stays in the Recovered compartment before becoming Susceptible again. |
31+
+-------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------+
3232

3333
An example can be found in the
3434
`examples/ode_sir.cpp <https://github.com/SciCompMod/memilio/blob/main/cpp/examples/ode_sir.cpp>`_.

0 commit comments

Comments
 (0)