pub struct Normalizer<T: Float, M>where
    for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
{ /* private fields */ }
Expand description

The Normalizer

The Normalizer provides an implementation of Transformer which allows us to transform the all rows to have the same norm.

The default Normalizer will use the Euclidean norm.

See the module description for more information.

Implementations

Constructs a new Normalizer with given norm.

Examples
use rusty_machine::data::transforms::Normalizer;
use rusty_machine::linalg::norm::Euclidean;

// Constructs a new `Normalizer`
let _ = Normalizer::<f64, Euclidean>::new(Euclidean);

Trait Implementations

Formats the value using the given formatter. Read more

Create a Normalizer with a Euclidean norm.

Returns the “default value” for a type. Read more
Transforms the inputs

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.