How to use:
1-Create a class that inherits vptree.Point
2-Create vptree.VPTree
3-Add points to VPTree by using VPTree.addPoint
4-Call VPTree.mount
5-Search points near to a point of interest by using VPTree.searchNodes, this method returns nodes that contains points.
6-For each node, get the points by calling vptree.Node.getPoints.
Restrictions:
1-You can add point to the tree, but can not remove them
2-After you mount the tree, the statistics will not be calculated again. If the tree becomes unbalanced, you must recreate it.
Use vptree.VPTree.calculateStats.toString() to check the statistics.
Follow VPTree
You Might Also Like
Our Free Plans just got better! | Auth0 by Okta
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of VPTree!