pointpats.PointProcess

class pointpats.PointProcess(window, n, samples, asPP=False, **args)[source]

Point Process base class.

Parameters:
windowWindow

Bounding geometric object to contain point process realizations.

nint

Size of each realization.

sampleslist

Number of realizations.

asPPbool

Control the data type of value in the “realizations” dictionary. If True, the data type is point pattern as defined in pointpattern.py; if False, the data type is an two-dimensional array.

Attributes:
realizationsdictionary

The key is the index of each realization, and the value is simulated event points for each realization. The data type of the value is controlled by the parameter “asPP”.

parametersdictionary

Dictionary of a dictionary. The key is the index of each realization, and the value is a dictionary with the key ‘n’ and the value size of each realization.

__init__(window, n, samples, asPP=False, **args)[source]

Methods

__init__(window, n, samples[, asPP])

draw(parameter)

Generate a series of point coordinates within the given window.

realize()

setup()

draw(parameter)[source]

Generate a series of point coordinates within the given window.

Parameters:
parameterdictionary

Key: ‘n’. Value: size of the realization.

Returns:
: array

A series of point coordinates.

realize()[source]
setup()[source]