[][src]Struct lsh_rs::prelude::MIPS

pub struct MIPS<N, K = i32> { /* fields omitted */ }

Maximum Inner Product Search. Read more.

Implementations

impl<N, K> MIPS<N, K> where
    N: Numeric + Float,
    K: Integer
[src]

pub fn new(
    dim: usize,
    r: f32,
    U: N,
    m: usize,
    n_projections: usize,
    seed: u64
) -> Self
[src]

pub fn fit(&mut self, v: &[Vec<N>])[src]

pub fn tranform_put(&self, x: &[N]) -> Vec<N>[src]

pub fn transform_query(&self, x: &[N]) -> Vec<N>[src]

Methods from Deref<Target = L2<N, K>>

Trait Implementations

impl<N: Clone, K: Clone> Clone for MIPS<N, K>[src]

impl<N, K> Deref for MIPS<N, K> where
    N: Numeric,
    K: Integer
[src]

type Target = L2<N, K>

The resulting type after dereferencing.

impl<'de, N, K> Deserialize<'de> for MIPS<N, K> where
    N: Deserialize<'de>,
    K: Deserialize<'de>, 
[src]

impl<N, K> QueryDirectedProbe<N, K> for MIPS<N, K> where
    N: Numeric + Float,
    K: Integer
[src]

impl<N, K> Serialize for MIPS<N, K> where
    N: Serialize,
    K: Serialize
[src]

impl<N, K> VecHash<N, K> for MIPS<N, K> where
    N: Numeric + Float,
    K: Integer
[src]

Auto Trait Implementations

impl<N, K> RefUnwindSafe for MIPS<N, K> where
    K: RefUnwindSafe,
    N: RefUnwindSafe

impl<N, K> Send for MIPS<N, K> where
    K: Send,
    N: Send

impl<N, K> Sync for MIPS<N, K> where
    K: Sync,
    N: Sync

impl<N, K> Unpin for MIPS<N, K> where
    K: Unpin,
    N: Unpin

impl<N, K> UnwindSafe for MIPS<N, K> where
    K: UnwindSafe,
    N: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,