crAdjust.new: Helper for 'makecluster' for 'type' = "cr" and 'fast' = TRUE

View source: R/rapt_cluster-sim.R

crAdjust.newR Documentation

Helper for makecluster for type = "cr" and fast = TRUE

Description

Adjustment method to get correct number of points in each cluster for the type = "cr" cluster generation method of makecluster function. This is a version of crAdjust meant to work with the faster, updated verios of type="cr" makecluster.

Usage

crAdjust.new(cluster.ind, cluster.info, diff, X, Y)

Arguments

cluster.ind

Vector of indices of the cluster points.

cluster.info

Factor containing the number of points in each cluster.

diff

The difference between the number of values needed and the number in cluster.ind.

X

The overlaying point pattern. A pp3 object.

Y

The underlaying point pattern. A pp3 object.

Value

A list of [1] The updated cluster.ind vector and [2] the updated cluster.info factor.


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