A subset \(Q \subseteq P\) of the points is selected and rotated
by a randomly sampled angle around its center.
doRotationMutation(coords, pm = 0.1, ...)
Arguments
coords |
[matrix ]
An n times 2 matrix of point coordinates in \([0, 1]^2\). |
pm |
[numeric(1) ]
Probability of node mutation. Note that each node is subject to mutation
independent of the the nodes.
Default is \(0.1\), i.e., in expectation 10% of the points are mutated. |
... |
[any]
Currently not used. |
Value
[matrix
] Mutated coordinates.
See also