util
Class Distances

java.lang.Object
  extended by util.Distances

public abstract class Distances
extends java.lang.Object

This package provides commonly used distance measures, e.g. euclid, cityblock etc.

Author:
koried@icsi.berkeley.edu

Constructor Summary
Distances()
           
 
Method Summary
static double euclidean(double[] a, double[] b)
           
static double manhattan(double[] a, double[] b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Distances

public Distances()
Method Detail

euclidean

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

manhattan

public static double manhattan(double[] a,
                               double[] b)
                        throws java.lang.Exception
Throws:
java.lang.Exception