org.geworkbench.util
Class EuclideanDistance

java.lang.Object
  extended by org.geworkbench.util.EuclideanDistance
All Implemented Interfaces:
Distance

public class EuclideanDistance
extends java.lang.Object
implements Distance


Field Summary
static EuclideanDistance instance
           
 
Constructor Summary
protected EuclideanDistance()
           
 
Method Summary
 double compute(double[] a, double[] b)
           
 double compute(DoubleIterator i, DoubleIterator j)
           
static double distance(double[] a, double[] b)
           
static double distance(DoubleIterator i, DoubleIterator j)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final EuclideanDistance instance
Constructor Detail

EuclideanDistance

protected EuclideanDistance()
Method Detail

distance

public static double distance(DoubleIterator i,
                              DoubleIterator j)

distance

public static double distance(double[] a,
                              double[] b)

compute

public double compute(DoubleIterator i,
                      DoubleIterator j)
Specified by:
compute in interface Distance

compute

public double compute(double[] a,
                      double[] b)
Specified by:
compute in interface Distance

main

public static void main(java.lang.String[] args)