Heterogeneous Pedestrian Model
data class HeterogeneousPedestrianModel<T, S : Vector<S>, A : Transformation<S>>(val age: Age, val gender: Gender, val speed: Speed, val compliance: Double = Compliance(age, gender).level, val helpAttitude: HelpAttitude = HelpAttitude(age, gender))
A pedestrian with individual characteristics.
Constructors
Link copied to clipboard
constructor(age: Age, gender: Gender, speed: Speed, compliance: Double = Compliance(age, gender).level, helpAttitude: HelpAttitude = HelpAttitude(age, gender))
Properties
Functions
Link copied to clipboard
fun probabilityOfHelping(toHelp: HeterogeneousPedestrianModel<T, S, A>, isGroupMember: Boolean): Double
Value between 0 and 1 representing the probability this pedestrian will help another pedestrian in difficulty.