pointpats.HexagonM

class pointpats.HexagonM(pp, lh)[source]

Hexagon grid structure for quadrat-based method.

Parameters:
ppPointPattern

Point Pattern instance.

lhfloat

Hexagon length (hexagon).

Attributes:
ppPointPattern

Point Pattern instance.

h_lengthfloat

Hexagon length (hexagon).

mbbarray

Minimum bounding box for the point pattern.

pointsarray

x,y coordinates of the point points.

h_lengthfloat

Hexagon length (hexagon).

count_row_eveninteger

Number of even rows.

count_row_oddinteger

Number of odd rows.

count_columninteger

Number of columns.

numinteger

Number of hexagonal quadrats.

__init__(pp, lh)[source]

Methods

__init__(pp, lh)

plot([title])

Plot hexagon quadrats as well as the number of points falling in each quadrat.

point_location_sta()

Count the point events in each hexagon cell.

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

Plot hexagon quadrats as well as the number of points falling in each quadrat.

Parameters:
title: str, optional

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

point_location_sta()[source]

Count the point events in each hexagon cell.

Returns:
dict_id_countdict

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