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__(self, pp, lh)[source]

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

Methods

__init__(self, pp, lh)

Initialize self.

plot(self[, title])

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

point_location_sta(self)

Count the point events in each hexagon cell.

plot(self, 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(self)[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.