EoN.estimate_R0¶
-
EoN.
estimate_R0
(G, tau=None, gamma=None, transmissibility=None)[source]¶ provides the estimate of the reproductive number R_0 = T <K^2-K>/<K>
This handles the Markovian continuous time case with T = tau/(tau+gamma) and it handles other cases by the user inputting an average transmissibility
For <K^2-K>/<K> it measures the network.
Arguments: G networkx Graph
- tau positive float (default
None
) transmission rate
Either both tau and gamma must be given or transmissibility is given.
- gamma positive float (default
None
) recovery rate
Either both tau and gamma must be given or transmissibility is given.
- transmissibility positive float (default
None
) average transmission probability
Either both tau and gamma must be given or transmissibility is given.
Returns: - R_0 float
- Reproductive number \(\mathcal{R}_0= T \langle K^2-K\rangle/\langle K\rangle\)
- tau positive float (default