velocity_constraint {particles} | R Documentation |
Limits particles to a specific velocity range
Description
This constraint puts bounds on the magnitude of velocity a particle can have. Particles where either end of the bound is NA ignores the constraint. If a particle with no velocity is forced to have a velocity the direction will be random.
Training parameters
The following parameters defines the training of the constraint and can be
passed along a call to impose()
-
v
: The velocity allowed for the particle. (tidy eval) -
vmin
: The lowest permissible velocity. IfNULL
thenv
will be used. (tidy eval) -
vmax
: The highest permissible velocity. IfNULL
thenv
will be used. (tidy eval)
See Also
Other constraints:
dominator_constraint
,
infinity_constraint
,
path_constraint
,
polygon_constraint
,
x_constraint
,
y_constraint
[Package particles version 0.2.3 Index]