math
Interface Metric

All Known Implementing Classes:
EuclideanMetric, PostOfficeMetric, RectilinearMetric, SupremumMetric

public interface Metric

A Metric is a function that satisfies the following properties for all x,y, z:

(The last of these properties is called the triangle inequality.)

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Method Summary
 double distance(double[] x, double[] y)
          Calculate the distance between two n-dimensional points
 

Method Detail

distance

double distance(double[] x,
                double[] y)
Calculate the distance between two n-dimensional points

Parameters:
x - One n-dimensional point
y - Another n-dimensional point
Returns:
The distance


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers