Skip to main content

Map01F64

Trait Map01F64 

Source
pub trait Map01F64: Send + Sync {
    type Input;

    // Required method
    fn map(&self, value: Self::Input) -> Witnessed<f64, V01>;
}
Expand description

Maps a measurement into the [0, 1] range.

Input is associated with the mapper rather than fixed in the trait, so a mapper can consume any measurement type. The normalized result carries the V01 witness.

Required Associated Types§

Source

type Input

The value accepted by Map01F64::map.

Required Methods§

Source

fn map(&self, value: Self::Input) -> Witnessed<f64, V01>

Converts value into a normalized score.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§