Function vrp_core::algorithms::statistics::relative_distance[][src]

pub fn relative_distance<A, B>(a: A, b: B) -> f64 where
    A: Iterator<Item = f64>,
    B: Iterator<Item = f64>, 

Calculates relative distance between two vectors. As weights are not normalized, apply standardization using relative change: D = |x - y| / max(|x|, |y|)