Create a new module providing lenses based on proximity information (for instance: entropy, density, ...).
These functions require collecting neighbors according to some rule (knn, or radius), and therefore it would be easy to compute them using the vptree module.