Skip to content

KDNode.dist returns squared distance while search_nn_dist requires euclidean distance #53

@MichaelSuen-thePointer

Description

@MichaelSuen-thePointer

The two lines below, one requires dist to be euclidean distance, and the other requires it to be squared distance:
https://github.com/stefankoegl/kdtree/blob/master/kdtree.py#L501
https://github.com/stefankoegl/kdtree/blob/master/kdtree.py#L508

And the best argument is not used
https://github.com/stefankoegl/kdtree/blob/master/kdtree.py#L517

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions