RandomTarget
class RandomTarget<T>(environment: Environment<T, Euclidean2DPosition>, node: Node<T>, directionRng: RandomGenerator, distanceDistribution: RealDistribution) : ChangeTargetOnCollision<T, Euclidean2DPosition> (source)
Selects a target for node based on a random direction extracted from directionRng, and a random distance extracted from distanceDistribution, stopping where environment stops node. T is the type of the concentration of the node.
Constructors
Link copied to clipboard
constructor(environment: Environment<T, Euclidean2DPosition>, node: Node<T>, directionRng: RandomGenerator, distanceDistribution: RealDistribution)