Kernel density estimation (KDE): Density of Events is a spatial kernel density estimator, a standard statistical method for estimating a probability density function from point samples. Each cell centroid adds a Gaussian "bump" to the surface, and the bumps sum to a smooth estimate of the underlying density. The kernel bandwidth (standard deviation) sets the smoothing. If it is too small, every cell becomes its own isolated peak; if it is too large, local hotspots average away.
1/f noise and spatial correlation: Tissue architecture is correlated at all scales at once (Gardner's analysis of 1/f noise). Cell density is neither random like white noise nor smoothly varying; it is fractal-like, with clusters inside clusters. The kernel's scale sets which level of that hierarchy you see.
Spatial point processes: In spatial statistics, a set of cell positions is one realization of a spatial point process, and a completely random (Poisson) process has the same expected density everywhere. Real tissue departs from that, because cells cluster (immune aggregates, tumor nests) or repel each other (regularly spaced epithelial cells). Density of Events shows where tissue departs from an even spread: bright regions are crowded and dark regions sparse. Its output is a density map, not a significance test against a random pattern.
The tile boundary problem: StrataQuest processes whole-slide images in tiles, and at a tile's edge the cells of the adjacent tile are out of view, so density reads too low there. The border handling parameter corrects this by including events from neighboring FOVs, much like the border handling in nuclei detectionLoading....
Density estimation turns discrete points (cell positions) into a smooth surface (the density map). The main parameter is kernel size: a kernel that is too small shows noise, and one that is too large loses local detail.