pointpats.QStatistic¶

class
pointpats.
QStatistic
(pp, shape='rectangle', nx=3, ny=3, lh=10, realizations=0)[source]¶ Quadrat analysis of point pattern.
 Parameters
 pp
PointPattern
Point Pattern instance.
 shapestring
Grid structure. Either “rectangle” or “hexagon”. Default is “rectangle”.
 nxinteger
Number of rectangles in the horizontal direction. Only when shape is specified as “rectangle” will nx be considered.
 nyinteger
Number of rectangles in the vertical direction. Only when shape is specified as “rectangle” will ny be considered.
 lhfloat
Hexagon length (hexagon). Only when shape is specified as “hexagon” will lh be considered. Incompatible with nx & ny.
 realizations
PointProcess
Point process instance with more than 1 point pattern realizations which would be used for simulation based inference. Default is 0 where no simulation based inference is performed.
 pp
 Attributes
 pp
PointPattern
Point Pattern instance.
 mr
RectangleM
orHexagonM
RectangleM or HexagonM instance.
 chi2float
Chisquared test statistic for the observed point pattern pp.
 dfinteger
Degree of freedom.
 chi2_pvaluefloat
pvalue based on analytical chisquared distribution.
 chi2_r_pvaluefloat
pvalue based on simulated sampling distribution. Only available when realizations is correctly specified.
 chi2_realizationsarray
Chisquared test statistics calculated for all of the simulated csr point patterns.
 pp
Methods
plot
(self[, title])Plot quadrats as well as the number of points falling in each quadrat.