gov.sandia.cognition.learning.function.distance
Class ChebyshevDistanceMetric

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.function.distance.ChebyshevDistanceMetric
All Implemented Interfaces:
DivergenceFunction<Vectorizable,Vectorizable>, Metric<Vectorizable>, Semimetric<Vectorizable>, CloneableSerializable, Serializable, Cloneable

@PublicationReference(title="Chebyshev Distance",
                      author="Wikipedia",
                      year=2011,
                      type=WebPage,
                      url="http://en.wikipedia.org/wiki/Chebyshev_distance")
public class ChebyshevDistanceMetric
extends AbstractCloneableSerializable
implements Metric<Vectorizable>

An implementation of the Chebyshev distance, which is the absolute value of the largest difference between two vectors in a single dimension. As such, it is the infinity-norm of the difference between the two vectors.

Since:
3.3.3
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
ChebyshevDistanceMetric()
          Creates a new ChebyshevDistanceMetric.
 
Method Summary
 double evaluate(Vectorizable first, Vectorizable second)
          Evaluates the divergence between the two given objects.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

ChebyshevDistanceMetric

public ChebyshevDistanceMetric()
Creates a new ChebyshevDistanceMetric.

Method Detail

evaluate

public double evaluate(Vectorizable first,
                       Vectorizable second)
Description copied from interface: DivergenceFunction
Evaluates the divergence between the two given objects.

Specified by:
evaluate in interface DivergenceFunction<Vectorizable,Vectorizable>
Parameters:
first - The first object.
second - The second object.
Returns:
The divergence between the objects.