changeAlgorithmType [TargetChangerAlgorithmType]:
Select TargetChangerAlgorithm {@link TargetChangerAlgorithmType}:
- FOLLOW_PERSON: Interpret first item of {@link #nextTarget} as pedestrian id and
use this pedestrian as the new target. In case of groups follow the leader. Fallback
behaviour if neither works: Set target list of pedestrian to {@link #nextTarget}.
Only first element of {@link #probabilityToChangeTarget} will be used.
- SELECT_LIST: Set the complete list of {@link #nextTarget} as the new target list
of pedestrian. {@link #probabilityToChangeTarget} must have 1 element only.
- SELECT_ELEMENT: Select *one* element of {@link #nextTarget} as the new target of
the pedestrian.
If {@link #probabilityToChangeTarget} is empty one element of {@link #nextTarget}
will be selected with a uniform distribution. If the length of {@link #probabilityToChangeTarget}
matches with {@link #nextTarget} use the relative select element based on relative probability
given by {@link #probabilityToChangeTarget}. nextTarget = [1, 2, 3]
E.g. If @probabilitiesToChangeTarget = [ 10, 20, 10 ] then the new target list will be
[1] in 25% of the cases, [2] in 50% and [3] in 25%.
- SORTED_SUB_LIST: The length of {@link #nextTarget} and @link #probabilityToChangeTarget} must
match. For each element in {@link #nextTarget} a bernoulli sample is drawn based on the given
parameters in {@link #probabilityToChangeTarget} with the same index. If the draw is successful
add the element to the new target list and repeat for all elements in {@link #nextTarget}