Description Usage Arguments Value See Also
View source: R/mutator.explosion.R
This operator is closely related to the implosion mutation (see
doImplosionMutation
). However, instead of dragging points towards
a center those points are instead moved away from it (similar to particles
affected by an explosion). Again, a center of explosion c \in R^2 and
an explosion radius ε = U[min.eps, max.eps] are sampled at random.
All points within the ball with radius ε around c are moved
away from the center following the direction vector between center and
corresponding point. The internals ensure that moved points have distance
at least ε to c after mutation plus an additive random number
sampled from an exponential distribution with rate parameter λ = 10.
1 | doExplosionMutation(coords, min.eps = 0.1, max.eps = 0.4, ...)
|
coords |
[ |
min.eps |
[ |
max.eps |
[ |
... |
[any] |
[matrix
] Mutated coordinates.
Other mutation operators: doAxisProjectionMutation
,
doClusterMutation
,
doCompressionMutation
,
doExpansionMutation
,
doGridMutation
,
doImplosionMutation
,
doLinearProjectionMutation
,
doNormalMutation
,
doRotationMutation
,
doUniformMutation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.