[][src]Struct lsh_rs::prelude::L2

pub struct L2<N = f32, K = i32> {
    pub a: Array2<N>,
    pub r: N,
    pub b: Array1<N>,
    // some fields omitted
}

L2 Hasher family. Read more.

Fields

a: Array2<N>r: Nb: Array1<N>

Implementations

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

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<N, K> UnwindSafe for L2<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>,