represents a function whose values give the density at a given location.
PointDensityFunction
represents a function whose values give the density at a given location.
Details
- PointDensityFunction objects are produced by functions such as PointDensity, HistogramPointDensity and SmoothPointDensity with point data pdata.
- PointDensityFunction works like Function.
- PointDensityFunction[…][x] gives the value of the intensity at location x.
Examples
open all close allBasic Examples (1)
Generate PointDensityFunction:
data = SpatialPointData[RandomReal[1, {500, 2}]];ListPlot[data]Compute the point density function:
intf = HistogramPointDensity[data]Compute the value at a location:
intf[{.3, .5}]Show[ContourPlot[intf[{x, y}], {x, 0, 1}, {y, 0, 1}], ListPlot[data, PlotStyle -> Black]]Scope (3)
Generate smooth PointDensityFunction:
data = SpatialPointData[RandomReal[1, {500, 2}]];ListPlot[data]Compute the point density function:
intf = SmoothPointDensity[data]Compute the value at a location:
intf[{.3, .5}]Show[ContourPlot[intf[{x, y}], {x, 0, 1}, {y, 0, 1}], ListPlot[data, PlotStyle -> Black]]Query PointDensityFunction for useful information:
data = RandomReal[1, {100, 2}];spd = SmoothPointDensity[data]spd["Properties"]Further properties are based on a DataDistribution:
spd["Distribution"]spd["Distribution"]["Properties"]PointDensity properties:
SeedRandom[1];
data = RandomReal[1, {100, 2}];pdf = PointDensity[data, "Voronoi"]pdf["Properties"]HistogramPointDensity properties:
hpd = HistogramPointDensity[data]hpd["Properties"]Related Guides
History
Text
Wolfram Research (2020), PointDensityFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/PointDensityFunction.html.
CMS
Wolfram Language. 2020. "PointDensityFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PointDensityFunction.html.
APA
Wolfram Language. (2020). PointDensityFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PointDensityFunction.html
BibTeX
@misc{reference.wolfram_2026_pointdensityfunction, author="Wolfram Research", title="{PointDensityFunction}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/PointDensityFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_pointdensityfunction, organization={Wolfram Research}, title={PointDensityFunction}, year={2020}, url={https://reference.wolfram.com/language/ref/PointDensityFunction.html}, note=[Accessed: 13-June-2026]}