Activity for leaving the trajectory with some probability.

leave(.trj, prob)

Arguments

.trj

the trajectory object.

prob

a probability or a function returning a probability.

Value

Returns the trajectory object.