psim: Polygonal symbolic data simulation

Description Usage Arguments Details Value Examples

View source: R/psim.R

Description

Simulate a polygonal variable with one or more individuals.

Usage

1
psim(n, vertices)

Arguments

n

number of simulated polygons.

vertices

number of vertex of the polygon.

Details

The argument radius should have all values greater than zero. Otherwise, we cannot construct the polygons that compose the symbolic polygonal random variable. Besides, the size of the center vector should be equal to range vector.

Value

A list of polygons.

Examples

1
2
number_polygons <- 10
psim(number_polygons, 4) 

psda documentation built on July 1, 2020, 6:10 p.m.