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:
- pp
PointPattern
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.
- pp
- Attributes:
- pp
PointPattern
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.
- pp
Methods
__init__
(pp[, count_column, count_row, ...])plot
([title])Plot rectangle tessellation as well as the number of points falling in each rectangle.
Count the point events in each cell.