schrodinger :: structutils :: measure :: _DistanceCell :: Class _DistanceCell
[hide private]
[frames] | no frames]

Class _DistanceCell

object --+
         |
        _DistanceCell

Instance Methods [hide private]
 
__init__(self, xyz, dist)
Class for fast queries of coordinates that are within distance <dist> of specified coordinate.
 
query(self, point)
Given a coordinate point, return all point indexes (0-indexed) that are within the threshold distance from it.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, xyz, dist)
(Constructor)

 

Class for fast queries of coordinates that are within distance <dist> of specified coordinate. This class must first be initialized from an array of all available coordinates, and a distance threshold. The query() method can then be used to get a list of points that are within the threshold distance from the specified point.

Overrides: object.__init__