pointpats.RectangleM

class pointpats.RectangleM(pp, count_column=3, count_row=3, rectangle_width=0, rectangle_height=0)[source]

Rectangle grid structure for quadrat-based method.

Parameters
ppPointPattern

Point Pattern instance.

count_columninteger

Number of rectangles in the horizontal direction. Use in pair with count_row to fully specify a rectangle. Incompatible with rectangle_width and rectangle_height.

count_rowinteger

Number of rectangles in the vertical direction. Use in pair with count_column to fully specify a rectangle. Incompatible with rectangle_width and rectangle_height.

rectangle_widthfloat

Rectangle width. Use in pair with rectangle_height to fully specify a rectangle. Incompatible with count_column & count_row.

rectangle_heightfloat

Rectangle height. Use in pair with rectangle_width to fully specify a rectangle. Incompatible with count_column & count_row.

Attributes
ppPointPattern

Point Pattern instance.

mbbarray

Minimum bounding box for the point pattern.

pointsarray

x,y coordinates of the point points.

count_columninteger

Number of columns.

count_rowinteger

Number of rows.

numinteger

Number of rectangular quadrats.

__init__(self, pp, count_column=3, count_row=3, rectangle_width=0, rectangle_height=0)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, pp[, count_column, …])

Initialize self.

plot(self[, title])

Plot rectangle tessellation as well as the number of points falling in each rectangle.

point_location_sta(self)

Count the point events in each cell.

plot(self, title='Quadrat Count')[source]

Plot rectangle tessellation as well as the number of points falling in each rectangle.

Parameters
title: str, optional

Title of the plot. Default is “Quadrat Count”.

point_location_sta(self)[source]

Count the point events in each cell.

Returns
dict_id_countdict

keys: rectangle id, values: number of point events in each cell.