PointPattern: Generator of PointPattern objects

Description Usage Arguments Value See Also Examples

View source: R/pgs.R

Description

Generate a PointPattern-class object representing a finite point pattern.

Usage

1
PointPattern(coord)

Arguments

coord

a matrix or a vector. If coord is a vector, it is transformed into a matrix with one column. Each column contains the Cartesian coordinates of a point. Hence the number of rows of coord defines the dimension of the space.

Value

An object of PointPattern-class.

See Also

PointPattern-class, generators PP2, PP3, generators of higher-dimensional figures Quadrat, Segment.

Examples

1
2
3
4
5
6
## Random planar point pattern
PointPattern(matrix(runif(10),2,5))
## Planar point pattern which consists of a single point
PointPattern(rep(0,2))
## Random point pattern on the line
PointPattern(matrix(runif(5),1,5))

pgs documentation built on May 29, 2017, 5:30 p.m.