cascading.pattern.model.clustering.measure
Class EuclideanMeasure

java.lang.Object
  extended by cascading.pattern.model.clustering.measure.ComparisonMeasure
      extended by cascading.pattern.model.clustering.measure.DistanceMeasure
          extended by cascading.pattern.model.clustering.measure.SquaredEuclideanMeasure
              extended by cascading.pattern.model.clustering.measure.EuclideanMeasure
All Implemented Interfaces:
Serializable

public class EuclideanMeasure
extends SquaredEuclideanMeasure

Class EuclideanMeasure calculates Euclidean distance between two points where the two points difference utilize the given CompareFunction.

See Also:
Serialized Form

Constructor Summary
EuclideanMeasure()
           
 
Method Summary
 double calculate(CompareFunction[] compareFunctions, Tuple values, double[] points)
          Calculate the distance from this cluster for the given tuple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EuclideanMeasure

public EuclideanMeasure()
Method Detail

calculate

public double calculate(CompareFunction[] compareFunctions,
                        Tuple values,
                        double[] points)
Description copied from class: ComparisonMeasure
Calculate the distance from this cluster for the given tuple.

Overrides:
calculate in class SquaredEuclideanMeasure
values - array of tuple values
Returns:
double


Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.