Ejemplo n.º 1
0
def is_mother_dead_at_birth():
    """
    Action to decide if the mother dies of child birth
    Returns:
        Boolean
    """
    return random_less_than(constants.MATERNAL_MORTALITY_RATE)
Ejemplo n.º 2
0
def is_adult_dead():
    """
    Action for any adult to decide if an adult is dead
    Returne:
        Boolean
    """
    return random_less_than(constants.ADULT_MORTALITY_RATE)
Ejemplo n.º 3
0
def is_mother_giving_birth():
    """
    Action for a mother to decide if she is giving birth in that year
    Returns:
        Boolean
    """
    return random_less_than(constants.BIRTH_PROB)
Ejemplo n.º 4
0
def is_neonatal_susceptible():
    """
    Action to decide if the infant is exposed and susceptible
    :return:
        boolean
    """
    return random_less_than(constants.INFANT_EXPOSURE_RATE)
Ejemplo n.º 5
0
def is_neonatal_dead():
    """
    Action to decide if the infant is dead upon birth
    Returns:
        Boolean
    """
    return random_less_than(constants.NEONATAL_MORTALITY_RATE)
Ejemplo n.º 6
0
def is_neonatal_vaccinated():
    """
    Action to decide if the infant is vaccinated
    :return:
        boolean
    """
    return random_less_than(constants.VACCINATION_RATE)
Ejemplo n.º 7
0
def is_child_susceptible():
    """
    Action to decide if the child is exposed and susceptible
    :return:
        boolean
    """
    return random_less_than(constants.CHILD_EXPOSURE_RATE)
Ejemplo n.º 8
0
def is_child_dead(add_prob=0.):
    """
    Action to decide if the child dies
    :param add_prob: float; any additional porobability over natural probability
    :return:
        boolean
    """
    return random_less_than(constants.CHILD_MORTALITY_RATE + add_prob)