relabel_summarize: Relabel input point pattern and calcluate summary functions

View source: R/rTEM_summarize.R

relabel_summarizeR Documentation

Relabel input point pattern and calcluate summary functions

Description

takes an input binary point pattern, randomly relabels it while maintainig the same ratio of marks, and calculates summary functions. Can then use average_relabelings to find averages and envelopes

Usage

relabel_summarize(
  seed,
  pattern,
  funcs = c("K", "G", "F", "GXGH"),
  dopant_formula,
  host_formula,
  k = 1,
  maxKr = 10,
  nKr = 200,
  maxGr = 5,
  nGr = 1000,
  maxGXGHr = 3,
  maxGXHGr = 8,
  nGXr = 1000,
  vside = 0.3,
  K_cor = "trans",
  G_cor = "km",
  F_cor = "km",
  GXGH_cor = "km",
  GXHG_cor = "km",
  G2_cor = "km"
)

Arguments

seed

number to use in 'set.seed' for reproducibility

pattern

point pattern of type ppp or pp3

funcs

vector of summary functions to calculate

dopant_formula

mark of points from which to calculate summary functions

host_formula

marks of points to not use in summary functions (except cross type functions)

maxKr

a numeric

nKr

a numeric

maxGr

a numeric

nGr

a numeric

maxGXGHr

a numeric

maxGXHGr

a numeric

nGXr

a numeric

K_cor

edge correction(s) to be used for K function

G_cor

edge correction(s) to be used for G function

F_cor

edge correction(s) to be used for F function

GXGH_cor

edge correction(s) to be used for GXGH function

GXHG_cor

edge correction(s) to be used for GXHG function

Value

summary functions listed in 'funcs' variable


rolandrolandroland/rTEM documentation built on March 29, 2025, 2:17 p.m.