pub trait PercentDiff<Rhs = Self> {
type Output;
// Required method
fn percent_diff(self, rhs: Rhs) -> Self::Output;
}Expand description
Compute the percentage difference between two values. The percentage difference is defined as:
\text{PercentDifference}(x, y) = 2\cdot\frac{|x - y|}{|x| + |y|}