rcylinder: Draw random cylinder coordinates

View source: R/surveillance_utils.r

rcylinderR Documentation

Draw random cylinder coordinates

Description

Find the coordinates (centers and height limits) of cylinders that contain events defined in observation.matrix, with radii and heights given in radii_and_heights.

Usage

rcylinder(
  n.cylinders,
  observation.matrix,
  time.range,
  radii_and_heights,
  postcode2coord,
  only.last = F
)

Arguments

n.cylinders

An integer; the number of cylinders to draw.

observation.matrix

A sparseMatrix object encoding the events.

time.range

An integer vector.

radii_and_heights

A Matrix.

postcode2coord

A data.frame that maps the rows of observation.matrix to geographical coordinates.

only.last

A bool; true if all cylinders must include the last time point (time.range[2]). For prospective analysis.

Value

A data.frame.

Examples

cylinders=rcylinder(10, observation.matrix, time.range, radii_and_heights, postcode2coord)

mcavallaro/rancovr documentation built on April 17, 2025, 7:21 p.m.