Estimate a proxy density based on the distance to the nearest neighbor.
- class nbodykit.algorithms.kdtree.KDDensity(source, margin=1.0)¶
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.
Compute the density proxy.