/// <summary>
 /// Returns $1$ for $x \gt y$, $-1$ for $x \lt y$, and $0$ for $x==y$.
 /// Treats values that differ by less than Double.Tolerance as equal.
 /// </summary>
 public int Compare(double x, double y)
 {
     return(DoubleUtil.Compare(x, y));
 }