Package 'groupedHyperframe.random'

Title: Simulated Point-Pattern via Vectorized Parameterization
Description: An intuitive interface to simulate superimposed (marked) point patterns with vectorized parameterization of random point pattern and distribution of marks. The author has retired from academic research. Accordingly, this package should not be considered a validated tool for use in peer-reviewed publications or as the basis for grant applications.
Authors: Tingting Zhan [aut, cre]
Maintainer: Tingting Zhan <[email protected]>
License: GPL-2
Version: 0.3.3
Built: 2026-11-21 02:38:47 UTC
Source: https://github.com/cran/groupedHyperframe.random

Help Index


groupedHyperframe.random: Simulated Point-Pattern via Vectorized Parameterization

Description

An intuitive interface to simulate superimposed (marked) point patterns with vectorized parameterization of random point pattern and distribution of marks. The author has retired from academic research. Accordingly, this package should not be considered a validated tool for use in peer-reviewed publications or as the basis for grant applications.

Note

The author of this package has retired from academic life and bears no ongoing obligation to any research program, institution, or funding agency. This package is no longer actively maintained as a research tool. Users are strongly advised against relying on this package for academic research, manuscript preparation, or grant applications.

Author(s)

Maintainer: Tingting Zhan [email protected]

Authors:


Superimposed (Marked) Point Pattern

Description

To simulate superimposed ppp.object(s), with none or one or multiple marks.

Usage

.rppp(..., win = square(), n = 1L, envir = parent.frame())

Arguments

...

one or more calls.

  • The first call specifies the parameters to generate the xx- and yy-coords;

  • The second to last calls, if available, specify the parameters to generate one or more marks.

win

owin.object, an observation window. Default value is the returned object of the function square (or the function unit.square, which is identical)

n

integer scalar, number of ppp.objects to generate. Default value is 1L.

envir

environment, in which to evaluate the ... dyn-dots argument. Default is the parent.frame.

Value

The function .rppp() returns a length-n solist, which also has a derived class 'ppplist'.

The returned ppp.object(s) contain only xx- and yy-coords, if only one call is present in the ... dyn-dots argument. Otherwise, they contain one or more marks according to the rest of the call(s) in the ... argument.

Note

The function name rppp() is too aggressive, which might be claimed in future by the package spatstat.random.

Therefore the author names this function .rppp() as if it is hidden (see the parameter all.names of the function ls).

Examples

set.seed(12); .rppp(
 rMatClust(kappa = c(10, 5), mu = c(8, 4), scale = c(.15, .06))
)

set.seed(25); .rppp(
 rMatClust(kappa = c(10, 5), mu = c(8, 4), scale = c(.15, .06)), 
 rlnorm(meanlog = c(3, 5), sdlog = c(.4, .2)),
 rnbinom(size = 4, prob = .3) # shorter arguments recycled
)