[−][src]Struct lsh_rs::prelude::MIPS
Maximum Inner Product Search. Read more.
Implementations
impl<N, K> MIPS<N, K> where
N: Numeric + Float,
K: Integer,
[src]
N: Numeric + Float,
K: Integer,
pub fn new(
dim: usize,
r: f32,
U: N,
m: usize,
n_projections: usize,
seed: u64
) -> Self
[src]
dim: usize,
r: f32,
U: N,
m: usize,
n_projections: usize,
seed: u64
) -> Self
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]
N: Numeric,
K: Integer,
impl<'de, N, K> Deserialize<'de> for MIPS<N, K> where
N: Deserialize<'de>,
K: Deserialize<'de>,
[src]
N: Deserialize<'de>,
K: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<N, K> QueryDirectedProbe<N, K> for MIPS<N, K> where
N: Numeric + Float,
K: Integer,
[src]
N: Numeric + Float,
K: Integer,
impl<N, K> Serialize for MIPS<N, K> where
N: Serialize,
K: Serialize,
[src]
N: Serialize,
K: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<N, K> VecHash<N, K> for MIPS<N, K> where
N: Numeric + Float,
K: Integer,
[src]
N: Numeric + Float,
K: Integer,
fn hash_vec_query(&self, v: &[N]) -> Vec<K>
[src]
fn hash_vec_put(&self, v: &[N]) -> Vec<K>
[src]
fn as_query_directed_probe(&self) -> Option<&dyn QueryDirectedProbe<N, K>>
[src]
fn as_step_wise_probe(&self) -> Option<&dyn StepWiseProbe<N, K>>
[src]
Auto Trait Implementations
impl<N, K> RefUnwindSafe for MIPS<N, K> where
K: RefUnwindSafe,
N: RefUnwindSafe,
K: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, K> Send for MIPS<N, K> where
K: Send,
N: Send,
K: Send,
N: Send,
impl<N, K> Sync for MIPS<N, K> where
K: Sync,
N: Sync,
K: Sync,
N: Sync,
impl<N, K> Unpin for MIPS<N, K> where
K: Unpin,
N: Unpin,
K: Unpin,
N: Unpin,
impl<N, K> UnwindSafe for MIPS<N, K> where
K: UnwindSafe,
N: RefUnwindSafe + UnwindSafe,
K: UnwindSafe,
N: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,