StableMetric

Trait StableMetric 

Source
pub trait StableMetric<T, D>
where T: Float, D: Dimension,
{ // Required method fn compute_stable(&self, x: &ArrayBase<impl Data<Elem = T>, D>) -> Result<T>; }
Expand description

Trait for metrics that have numerically stable implementations

Required Methods§

Source

fn compute_stable(&self, x: &ArrayBase<impl Data<Elem = T>, D>) -> Result<T>

Compute the metric in a numerically stable way

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§