How to use the pysd.py_backend.functions.Integ function in pysd

To help you get started, we’ve selected a few pysd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SDXorg / test-models / samples / SIR / SIR.py View on Github external
0.03125

    Day

    (0.0, None)

    constant

    The time step for the simulation.
    """
    return 0.03125


integ_infectious = functions.Integ(lambda: succumbing() - recovering(), lambda: 5)

integ_recovered = functions.Integ(lambda: recovering(), lambda: 0)

integ_susceptible = functions.Integ(lambda: -succumbing(), lambda: total_population())