#[repr(C)]pub enum NormTypes {
NORM_INF = 1,
NORM_L1 = 2,
NORM_L2 = 4,
NORM_L2SQR = 5,
NORM_HAMMING = 6,
NORM_HAMMING2 = 7,
NORM_RELATIVE = 8,
NORM_MINMAX = 32,
}Expand description
norm types
src1 and src2 denote input arrays.
Variants§
NORM_INF = 1
NORM_L1 = 2
NORM_L2 = 4
NORM_L2SQR = 5
NORM_HAMMING = 6
In the case of one input array, calculates the Hamming distance of the array from zero, In the case of two input arrays, calculates the Hamming distance between the arrays.
NORM_HAMMING2 = 7
Similar to NORM_HAMMING, but in the calculation, each two bits of the input sequence will be added and treated as a single bit to be used in the same calculation as NORM_HAMMING.
NORM_RELATIVE = 8
flag
NORM_MINMAX = 32
flag
Trait Implementations§
impl Copy for NormTypes
impl Eq for NormTypes
impl StructuralPartialEq for NormTypes
Auto Trait Implementations§
impl Freeze for NormTypes
impl RefUnwindSafe for NormTypes
impl Send for NormTypes
impl Sync for NormTypes
impl Unpin for NormTypes
impl UnwindSafe for NormTypes
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