Implementations§
source§impl<A: Float + Zero + One, T: PartialEq, U: AsRef<[A]> + PartialEq> KdTree<A, T, U>
impl<A: Float + Zero + One, T: PartialEq, U: AsRef<[A]> + PartialEq> KdTree<A, T, U>
sourcepub fn new(dims: usize) -> Self
pub fn new(dims: usize) -> Self
Create a new KD tree, specifying the dimension size of each point
sourcepub fn with_capacity(dimensions: usize, capacity: usize) -> Self
pub fn with_capacity(dimensions: usize, capacity: usize) -> Self
Create a new KD tree, specifying the dimension size of each point and the capacity of leaf nodes