Skip to main content

NormalizeDistance

Trait NormalizeDistance 

Source
pub trait NormalizeDistance: Iterator<Item = f32> + Sized {
    // Provided methods
    fn exp_sum(self, lambda: f32) -> f32
       where Self: Sized { ... }
    fn normalized_exp(self, target_exp_sum: f32) -> Vec<f32>
       where Self: Clone { ... }
}
Expand description

normalize distance

Provided Methods§

Source

fn exp_sum(self, lambda: f32) -> f32
where Self: Sized,

Source

fn normalized_exp(self, target_exp_sum: f32) -> Vec<f32>
where Self: Clone,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<I> NormalizeDistance for I
where I: Iterator<Item = f32>,