[−][src]Struct petal_neighbors::BallTree
A data structure for neighbor search in a multi-dimensional space.
Methods
impl<'a, M: Metric> BallTree<'a, M>
[src]
pub fn with_metric(points: ArrayView2<'a, f64>, metric: M) -> Self
[src]
pub fn query_one<'p, P>(&self, point: P) -> Neighbor where
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
[src]
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
pub fn query<'p, P>(&self, point: P, k: usize) -> Vec<Neighbor> where
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
[src]
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
pub fn query_radius<'p, P>(&self, point: P, distance: f64) -> Vec<usize> where
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
[src]
P: 'p + Copy + IntoIterator,
<P as IntoIterator>::Item: Copy + Into<&'p f64>,
Trait Implementations
Auto Trait Implementations
impl<'a, M> Send for BallTree<'a, M> where
M: Send,
M: Send,
impl<'a, M> Sync for BallTree<'a, M> where
M: Sync,
M: Sync,
impl<'a, M> Unpin for BallTree<'a, M> where
M: Unpin,
M: Unpin,
impl<'a, M> UnwindSafe for BallTree<'a, M> where
M: UnwindSafe,
M: UnwindSafe,
impl<'a, M> RefUnwindSafe for BallTree<'a, M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,