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.

rectangle_widthfloat

Width of a rectangular quadrat.

rectangle_heightfloat

Height of a rectangular quadrat.

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

Methods

__init__(pp[, count_column, count_row, ...])

plot([title])

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

point_location_sta()

Count the point events in each cell.

plot(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()[source]

Count the point events in each cell.

Returns:
dict_id_countdict

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