nmers: Select n-mer Clusters

View source: R/rapt_sim.R

nmersR Documentation

Select n-mer Clusters

Description

Creates an n-mer point pattern by selecting the n+1 nearest neighbors of a sampled point pattern from its parent distribution.

Usage

nmers(sam, parent, n = 2, full = FALSE)

Arguments

sam

pp3. The seed points for the n-mers

parent

pp3. The point pattern from which to draw the n-mers

n

numeric. The number of points in the n-mer. Default is 2

full

logical. Return a marked pattern with both n-mers and "background" points? Default is FALSE

Value

A pp3 with the n-mers. If full = FALSE (the default) this is an unmarked pattern with only the positions of the n-mers. If full = TRUE, this is a marked pattern with marks "nmers" and "bkgd".

See Also

clustersim

Other simulation functions: clustersim(), lattice(), makecluster(), morph_lamellar(), morph_rods(), read.rcp(), scaleRCP(), stitch.size()


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