|
Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits Iterable< T >.
Classes | |
| class | EuclideanComparator |
| class | KdNode |
| class | XYZPoint |
Public Member Functions | |
| KdTree () | |
| KdTree (List< T > points) | |
| boolean | add (T value) |
| boolean | contains (T value) |
| KdNode | getRoot () |
| Iterator< T > | iterator () |
| Collection< T > | nearestNeighbourSearch (int numNeighbors, T value) |
| Iterator< T > | reverse_iterator () |
Private Member Functions | |
| KdNode | getBalancedNode (KdNode parent, List< T > points, int depth) |
Private Attributes | |
| KdNode | root = null |
Static Private Attributes | |
| static final int | DIMENSIONS = 2 |
| static final double | EARTH_RADIUS = 6371e3 |
| static final Comparator< XYZPoint > | X_COMPARATOR |
| static final Comparator< XYZPoint > | Y_COMPARATOR |
| static final Comparator< XYZPoint > | Z_COMPARATOR |
A k-d tree (short for k-dimensional tree) is a space-partitioning data structure for organizing points in a k-dimensional space. k-d trees are a useful data structure for several applications, such as searches involving a multidimensional search key (e.g. range searches and nearest neighbor searches). k-d trees are a special case of binary space partitioning trees.
Original other was JustinWetherell phishman3579@gmail.com.
Definition at line 51 of file KdTree.java.
| org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdTree | ( | ) |
Main constructor.
Definition at line 102 of file KdTree.java.
| org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdTree | ( | List< T > | points | ) |
Constructor that creates a balanced tree with the provided nodes.
| points | The points to add and balance. |
Definition at line 110 of file KdTree.java.
| boolean org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.add | ( | T | value | ) |
Adds value to the tree. Tree can contain multiple equal values.
| value | T to add to the tree. |
Definition at line 163 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.MapPanel.createOSMZipFactory().
| boolean org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.contains | ( | T | value | ) |
Does the tree contain the value.
| value | T to locate in the tree. |
Definition at line 204 of file KdTree.java.
|
private |
Recursively creates balanced KdNode's from the given list. NOTE: The approach is to: 1) sort the list based on the depth's comparator 2) find a center point 3) For lesser and greater, recurse until base case.
There may be more efficient means of achieving balanced nodes.
| parent | The parent of this node or null if this will be root. |
| points | The points to be balanced in the tree. |
| depth | The current depth (used to determine axis to sort on). |
Definition at line 134 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.getBalancedNode(), and org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.KdTree().
| KdNode org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.getRoot | ( | ) |
Definition at line 118 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.contains().
| Iterator<T> org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.iterator | ( | ) |
Searches all entries from the first to the last entry.
Definition at line 444 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.MapPanel.MapPanel().
| Collection<T> org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.nearestNeighbourSearch | ( | int | numNeighbors, |
| T | value | ||
| ) |
Searches for numNeighbors nearest neighbor.
| numNeighbors | Number of neighbors to retrieve. Can return more than numNeighbors, if last nodes are equal distances. |
| value | to find neighbors of. |
Definition at line 256 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.MapPanel.findClosestWaypoint().
| Iterator<T> org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.reverse_iterator | ( | ) |
Searches all entries from the last to the first entry.
Definition at line 456 of file KdTree.java.
|
staticprivate |
Definition at line 55 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.compareTo(), org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.hashCode(), org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.nearestNeighbourSearch(), and org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.toString().
|
staticprivate |
Definition at line 58 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.XYZPoint.euclideanDistance().
|
private |
Definition at line 56 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.add(), org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.getRoot(), org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.iterator(), org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.nearestNeighbourSearch(), and org.sleuthkit.autopsy.geolocation.KdTree< org.sleuthkit.autopsy.geolocation.MapWaypoint >.reverse_iterator().
|
staticprivate |
Compares two XYZPoints by their X value.
Definition at line 63 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.compareTo(), and org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.XYZPoint.compareTo().
|
staticprivate |
Compares two XYZPoints by their Y value.
Definition at line 76 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.compareTo(), and org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.XYZPoint.compareTo().
|
staticprivate |
Compares two XYZPoints by their Z value.
Definition at line 89 of file KdTree.java.
Referenced by org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.KdNode.compareTo(), and org.sleuthkit.autopsy.geolocation.KdTree< T extends KdTree.XYZPoint >.XYZPoint.compareTo().
Copyright © 2012-2022 Basis Technology. Generated on: Mon Apr 17 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.