nbodykit.algorithms.kdtree¶
Classes
|
Estimate a proxy density based on the distance to the nearest neighbor. |
-
class
nbodykit.algorithms.kdtree.
KDDensity
(source, margin=1.0)[source]¶ Estimate a proxy density based on the distance to the nearest neighbor. The result is proportional to the density but the scale is unspecified.
Results are computed when the object is inititalized. See the documenation of
run()
for the attributes storing the results.- Parameters
source (CatalogSource) – the input source of particles to compute the proxy density on; must specify the ‘Position’ column
margin (float, optional) – Padding region per parallel domain; relative to the mean seperation
Methods
run
(self)Compute the density proxy.