View source: R/rapt_cluster-sim.R
randomInsert | R Documentation |
makecluster
to insert random cluster pointsWhen pip
argument of makecluster
is not equal to 1, or
superfast == TRUE
, there may be random points that need to be marked
as cluster type placed within the underlaying pattern. This function does
just that.
randomInsert(cluster.indices, n, N, s, points.avoid = cluster.indices)
cluster.indices |
A vector containing the indices of the current cluster points |
n |
The number of points that need to be placed randomly |
N |
The number of points in the entire underlaying pattern. |
s |
The seed for the random inserted points. |
points.avoid |
A vector containing the indices of the points you don't want the function to insert points to. |
New indices vector containing new cluster points randomly placed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.