pub trait HistogramIntervalDistance<T> {
    // Required method
    fn interval_distance_overlap<V: Borrow<T>>(
        &self,
        val: V,
        overlap: NonZeroUsize
    ) -> usize;
}
Expand description

Distance metric for how far a value is from a valid interval

Required Methods§

source

fn interval_distance_overlap<V: Borrow<T>>( &self, val: V, overlap: NonZeroUsize ) -> usize

Distance metric for how far a value is from a valid interval
  • partitions in more intervals, checks which bin interval a bin corresponds to and returns distance of said interval to the target interval
  • used for heuristics
  • overlap should be bigger 0, otherwise it will be set to 1

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> HistogramIntervalDistance<T> for AtomicHistogramFloat<T>

source§

impl<T> HistogramIntervalDistance<T> for AtomicHistogramInt<T>
where T: Ord + Sub<T, Output = T> + Add<T, Output = T> + One + NumCast + Copy,

source§

impl<T> HistogramIntervalDistance<T> for HistogramFast<T>
where Self: HistogramVal<T>, T: PartialOrd + Sub<Output = T> + NumCast + Copy,

source§

impl<T> HistogramIntervalDistance<T> for HistogramFloat<T>

source§

impl<T> HistogramIntervalDistance<T> for HistogramInt<T>
where T: Ord + Sub<T, Output = T> + Add<T, Output = T> + One + NumCast + Copy,