BrownianMove
class BrownianMove<T, P : Position<P>> @JvmOverloads constructor(environment: Environment<T, P>, reaction: Reaction<T>, node: Node<T> = reaction.host as? Node<T> ?: error(
"${BrownianMove::class.simpleName} must either be provided with a node " +
"or be owned by a reaction hosted by a node",
), randomGenerator: RandomGenerator, range: Double) : AbstractNodeAction<T> (source)
Moves the target node randomly, by at most range along each dimension at every execution.
Type Parameters
T
concentration type
P
position type
Constructors
Link copied to clipboard
constructor(environment: Environment<T, P>, reaction: Reaction<T>, node: Node<T> = reaction.host as? Node<T> ?: error(
"${BrownianMove::class.simpleName} must either be provided with a node " +
"or be owned by a reaction hosted by a node",
), randomGenerator: RandomGenerator, range: Double)