level

fun level(    toHelpAge: Age,     toHelpGender: Gender,     sameGroup: Boolean): Double

The logic used to calculate the probability of helping.

Parameters

toHelpAge
    the age of the agent who needs help.
toHelpGender
    the gender of the agent who needs help.
sameGroup
    whether or not the two agents belong to the same group.