randomTakeAway: Helper for 'makecluster' to take away random cluster points

View source: R/rapt_cluster-sim.R

randomTakeAwayR Documentation

Helper for makecluster to take away random cluster points

Description

When superfast argument of makecluster is TRUE, there may be random points that need to be removed from the existing clusters of the the underlaying pattern. This function does just that.

Usage

randomTakeAway(cluster.indices, n, N, s)

Arguments

cluster.indices

A vector containing the indices of the current cluster points

n

The number of points that need to be removed randomly

N

The number of points in the entire underlaying pattern.

s

The random seed for the random selection of points to take away.

Value

New indices vector containing new cluster points randomly placed.


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.