probabilityOfHelping
fun probabilityOfHelping(toHelp: HeterogeneousPedestrianModel<T, S, A>, isGroupMember: Boolean): Double
Returns the probability that this pedestrian will help another pedestrian.
Return
a probability in 0.0, 1.0 representing the likelihood of offering help.
Parameters
toHelp
the pedestrian who may receive help.
isGroupMember
true if the pedestrian in difficulty is a member of the helper's group.