PointDensity
✖
PointDensity
estimates the point density function with the partition method pmethod.
Details and Options



- Point density is also known as point intensity.
- The point density
gives a function that describes how the number of points
varies per length, area and volume in the observation region ℛ. The integral over the region is the total number of points
.
- PointDensity gives a partition-based estimator that adapts to the point collection in how the partition is formed, effectively using a cell per point.
- The resulting point density function typically looks very noisy. To get a smoothed version of the point density, use HistogramPointDensity or SmoothPointDensity.
- Point density is typically used to define an inhomogeneous Poisson process or a measure of inhomogeneity.
- PointDensity returns a PointDensityFunction that can be used to evaluate the density function repeatedly.
- The point data pdata can have the following forms:
-
{p1,p2,…} points pi GeoPosition[…],GeoPositionXYZ[…],… geographic points SpatialPointData[…] spatial point collection {pts,reg} point collection pts and observation region reg - If the observation region reg is not given, a region automatically computed using RipleyRassonRegion.
- For the point intensity estimation from the binned data bdata, which is assumed to be SpatialBinnedPointData, the points are simulated uniformly in each bin.
- The point process pproc can have the following forms:
-
proc a point process proc with exact formulas {proc,reg} a point process proc and observation region reg based on simulation - The observation region reg should be a parameter-free, full-dimensional and bounded region as tested by SpatialObservationRegionQ.
- The partition method pmethod can be used:
-
"Delaunay" Delaunay cells from point data; gives a piecewise linear density function (default) "Voronoi" Voronoi cells from point data; gives a piecewise-constant density function {"Voronoi",n} aggregate cells so that approximately n cells remain, based on the smallest cells first

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Create a SpatialPointData:

https://wolfram.com/xid/0d6f1yjjbr-05vj9t


https://wolfram.com/xid/0d6f1yjjbr-hjiyok


https://wolfram.com/xid/0d6f1yjjbr-b6a7b6


https://wolfram.com/xid/0d6f1yjjbr-vsuaf7

Visualize the intensity estimation:

https://wolfram.com/xid/0d6f1yjjbr-17dhwf

Calculate PointDensity on the surface of the Earth:

https://wolfram.com/xid/0d6f1yjjbr-xqho8

https://wolfram.com/xid/0d6f1yjjbr-birkq

https://wolfram.com/xid/0d6f1yjjbr-b67l3b

Visualize the density function using random locations:

https://wolfram.com/xid/0d6f1yjjbr-lrkas8

https://wolfram.com/xid/0d6f1yjjbr-0g2wpb

Create density for an InhomogeneousPoissonPointProcess from data:

https://wolfram.com/xid/0d6f1yjjbr-dg84fb

https://wolfram.com/xid/0d6f1yjjbr-re6qm
Compute the point intensity function:

https://wolfram.com/xid/0d6f1yjjbr-ciog7o

Define an InhomogeneousPoissonPointProcess with the computed point density:

https://wolfram.com/xid/0d6f1yjjbr-fehvrd
Sample from this point process:

https://wolfram.com/xid/0d6f1yjjbr-foin3g


https://wolfram.com/xid/0d6f1yjjbr-d7cvoq

Scope (7)Survey of the scope of standard use cases
Point Data (4)
Create a homogeneous univariate SpatialPointData:

https://wolfram.com/xid/0d6f1yjjbr-f7pdx3

Compute the point intensity function using different partition methods:

https://wolfram.com/xid/0d6f1yjjbr-fs63hf


https://wolfram.com/xid/0d6f1yjjbr-c8mnfp

Visualize using a random point sample:

https://wolfram.com/xid/0d6f1yjjbr-4fg35r

https://wolfram.com/xid/0d6f1yjjbr-9q2xxf

Create an inhomogeneous univariate SpatialPointData:

https://wolfram.com/xid/0d6f1yjjbr-s8csrb

Compare the point density function with the smooth kernel density method:

https://wolfram.com/xid/0d6f1yjjbr-g6rshi


https://wolfram.com/xid/0d6f1yjjbr-ghxscm


https://wolfram.com/xid/0d6f1yjjbr-fjhoxl

The point density of clustered data:

https://wolfram.com/xid/0d6f1yjjbr-148izt

https://wolfram.com/xid/0d6f1yjjbr-lrvzo4

Compute the point density from data:

https://wolfram.com/xid/0d6f1yjjbr-q20vmn


https://wolfram.com/xid/0d6f1yjjbr-o4f0lh

Point the density for a hardcore process:

https://wolfram.com/xid/0d6f1yjjbr-y8f38b

https://wolfram.com/xid/0d6f1yjjbr-k4qcyq


https://wolfram.com/xid/0d6f1yjjbr-i8vkwq


https://wolfram.com/xid/0d6f1yjjbr-fbtenf

Point Processes (3)
The point density function for PoissonPointProcess is constant in every dimension:

https://wolfram.com/xid/0d6f1yjjbr-3hltk1

https://wolfram.com/xid/0d6f1yjjbr-m6387j

The point density function for InhomogeneousPoissonPointProcess:

https://wolfram.com/xid/0d6f1yjjbr-5jd3j6

https://wolfram.com/xid/0d6f1yjjbr-hydsc

The point density function for BinomialPointProcess on a ball:

https://wolfram.com/xid/0d6f1yjjbr-7zm1eo

https://wolfram.com/xid/0d6f1yjjbr-mcpeoc

https://wolfram.com/xid/0d6f1yjjbr-bmq95c


https://wolfram.com/xid/0d6f1yjjbr-0s6qk7


https://wolfram.com/xid/0d6f1yjjbr-uenv15

For a process defined on a square:

https://wolfram.com/xid/0d6f1yjjbr-emjb8a

https://wolfram.com/xid/0d6f1yjjbr-wp02k9

Applications (1)Sample problems that can be solved with this function
Get the data of rat sightings in New York City:

https://wolfram.com/xid/0d6f1yjjbr-iqwxi6

List column keys to find locations column:

https://wolfram.com/xid/0d6f1yjjbr-niivws

Extract geo locations, delete missing and create SpatialPointData:

https://wolfram.com/xid/0d6f1yjjbr-s2adap


https://wolfram.com/xid/0d6f1yjjbr-sel3hj

Visualize the areas of prevalence of rat sightings in NYC on a sample of the locations:

https://wolfram.com/xid/0d6f1yjjbr-mcpazh

https://wolfram.com/xid/0d6f1yjjbr-n3nsl1

Properties & Relations (1)Properties of the function, and connections to other functions
Wolfram Research (2020), PointDensity, Wolfram Language function, https://reference.wolfram.com/language/ref/PointDensity.html.
Text
Wolfram Research (2020), PointDensity, Wolfram Language function, https://reference.wolfram.com/language/ref/PointDensity.html.
Wolfram Research (2020), PointDensity, Wolfram Language function, https://reference.wolfram.com/language/ref/PointDensity.html.
CMS
Wolfram Language. 2020. "PointDensity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PointDensity.html.
Wolfram Language. 2020. "PointDensity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PointDensity.html.
APA
Wolfram Language. (2020). PointDensity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PointDensity.html
Wolfram Language. (2020). PointDensity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PointDensity.html
BibTeX
@misc{reference.wolfram_2025_pointdensity, author="Wolfram Research", title="{PointDensity}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/PointDensity.html}", note=[Accessed: 08-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_pointdensity, organization={Wolfram Research}, title={PointDensity}, year={2020}, url={https://reference.wolfram.com/language/ref/PointDensity.html}, note=[Accessed: 08-July-2025
]}