Trait rusty_machine::linalg::Metric
[−]
pub trait Metric<T> { fn norm(&self) -> T; }
Trait for linear algebra metrics.
Currently only implements basic euclidean norm.
Required Methods
fn norm(&self) -> T
Computes the euclidean norm.
Implementors
impl<T> Metric<T> for Matrix<T> where T: Float
impl<'a, T> Metric<T> for MatrixSlice<'a, T> where T: Float
impl<'a, T> Metric<T> for MatrixSliceMut<'a, T> where T: Float
impl<T> Metric<T> for Vector<T> where T: Float