pub enum NormType {
L1,
L2,
LInfinity,
Weighted,
}Expand description
Vector norm types for error measurement.
Variants§
L1
L1 norm (sum of absolute values)
L2
L2 norm (Euclidean norm)
LInfinity
L∞ norm (maximum absolute value)
Weighted
Weighted norm with custom weights
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NormType
impl<'de> Deserialize<'de> for NormType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for NormType
impl Eq for NormType
impl StructuralPartialEq for NormType
Auto Trait Implementations§
impl Freeze for NormType
impl RefUnwindSafe for NormType
impl Send for NormType
impl Sync for NormType
impl Unpin for NormType
impl UnwindSafe for NormType
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