In rtree, how can I specify the threshold for float equality testing?
Actually it does not need to have a threshold to handle ties. They just happen.
Assuming you have the data points (1.,0.) and (0.,1.) and query point (0.,0.), any implementation I've seen of Euclidean distance will return the exact same distance for both, without any threshold.
In rtree, how can I specify the threshold for float equality testing?
When checking nearest neighbours, rtree can return more than the specified number of results, as if two points are equidistant, it returns both them. To check this equidistance, it must have some threshold since the distances are floats. I want to be able to control this threshold.