[SciPy-User] Using arbitrary object as datapoints for scipy.spatial.KDTree
Sun Jun 24 06:00:27 CDT 2012
A KDTree is usually created with a list of tuples, where each tuple
represents a datapoint (ie. [(3,4,5), (6,7,8)])
Is it possible to create one using a list of your own objects?
ie. something like a list of "point" objects
self.location = location
In this case self.location is what the tree would use in creating nodes and
I have tried to implement the __getitem__(self): method, but this does not
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User