#[repr(u32)]pub enum FaissMetricType {
METRIC_INNER_PRODUCT = 0,
METRIC_L2 = 1,
METRIC_L1 = 2,
METRIC_Linf = 3,
METRIC_Lp = 4,
METRIC_Canberra = 20,
METRIC_BrayCurtis = 21,
METRIC_JensenShannon = 22,
}Expand description
Some algorithms support both an inner product version and a L2 search version.
Variants§
METRIC_INNER_PRODUCT = 0
< maximum inner product search
METRIC_L2 = 1
< squared L2 search
METRIC_L1 = 2
< L1 (aka cityblock)
METRIC_Linf = 3
< infinity distance
METRIC_Lp = 4
< L_p distance, p is given by metric_arg
METRIC_Canberra = 20
some additional metrics defined in scipy.spatial.distance
METRIC_BrayCurtis = 21
some additional metrics defined in scipy.spatial.distance
METRIC_JensenShannon = 22
some additional metrics defined in scipy.spatial.distance
Trait Implementations§
Source§impl Clone for FaissMetricType
impl Clone for FaissMetricType
Source§fn clone(&self) -> FaissMetricType
fn clone(&self) -> FaissMetricType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FaissMetricType
impl Debug for FaissMetricType
Source§impl Hash for FaissMetricType
impl Hash for FaissMetricType
Source§impl PartialEq for FaissMetricType
impl PartialEq for FaissMetricType
impl Copy for FaissMetricType
impl Eq for FaissMetricType
impl StructuralPartialEq for FaissMetricType
Auto Trait Implementations§
impl Freeze for FaissMetricType
impl RefUnwindSafe for FaissMetricType
impl Send for FaissMetricType
impl Sync for FaissMetricType
impl Unpin for FaissMetricType
impl UnwindSafe for FaissMetricType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more