/** Compute the distance between two vectors according to the L<sub>∞</sub> norm. * <p>Calling this method is equivalent to calling: * <code>p1.subtract(p2).getNormInf()</code> except that no intermediate * vector is built</p> * @param p1 first vector * @param p2 second vector * @return the distance between p1 and p2 according to the L<sub>∞</sub> norm */ public static double distanceInf(Vector1D p1, Vector1D p2) { return p1.distanceInf(p2); }
/** Compute the distance between two vectors according to the L<sub>∞</sub> norm. * <p>Calling this method is equivalent to calling: * <code>p1.subtract(p2).getNormInf()</code> except that no intermediate * vector is built</p> * @param p1 first vector * @param p2 second vector * @return the distance between p1 and p2 according to the L<sub>∞</sub> norm */ public static double distanceInf(Vector1D p1, Vector1D p2) { return p1.distanceInf(p2); }