EoN.EBCM¶
-
EoN.
EBCM
(N, psihat, psihatPrime, tau, gamma, phiS0, phiR0=0, R0=0, tmin=0, tmax=100, tcount=1001, return_full_data=False)[source]¶ Encodes system (6.12) of Kiss, Miller, & Simon. Please cite the book if using this algorithm.
note : R0 is R(0), not the reproductive number
Arguments: - N positive integer
- size of population
- psihat function
- psihat(x) = sum_k S(k,0) x^k
- psihatPrime function
- psihatPrime(x) = d psihat(x)/dx = sum_k k S(k,0) x^{k-1} where S(k,0) is the probability a random node has degree k and is susceptible at start time.
- tau positive float
- per edge transmission rate
- gamma positive float
- per node recovery rate
- phiS0 positive float
- initial proportion of edges (of susceptible nodes) connecting to susceptible nodes
- phiR0 positive float
- initial proportion of edges (of susceptible nodes) connecting to recovered nodes
- R0 positive integer
- number of recovered nodes at time 0
- tmin number
- start time
- tmax number
- stop time
- tcount positive integer
- number of distinct times to calculate
- return_full_data boolean
- if False,
- return t, S, I, R
- if True
- return t, S, I, R, and theta
Returns: - if return_full_data == False:
- returns t, S, I, R, all numpy arrays
- if …== True
- returns t, S, I, R and theta, all numpy arrays