org.knime.base.node.mine.mds.distances
Interface DistanceManager

All Known Implementing Classes:
CosinusDistanceManager, EuclideanDistanceManager, ManhattanDistanceManager

public interface DistanceManager

Author:
Kilian Thiel, University of Konstanz

Method Summary
 double getDistance(DataPoint point1, DataPoint point2)
          Returns the distance between the given DataPoints, point1 and point2.
 double getDistance(DataRow row1, DataRow row2)
          Returns the distance between the given DataRows, row1 and row2.
 String getType()
           
 

Method Detail

getDistance

double getDistance(DataRow row1,
                   DataRow row2)
Returns the distance between the given DataRows, row1 and row2. The distance metric is up to the concrete implementation.

Parameters:
row1 - First DataRow to compute distance.
row2 - Second DataRow to compute distance.
Returns:
The distance between given DataRows.

getDistance

double getDistance(DataPoint point1,
                   DataPoint point2)
Returns the distance between the given DataPoints, point1 and point2. The distance metric is up to the concrete implementation.

Parameters:
point1 - First DataPoint to compute distance.
point2 - Second DataPoint to compute distance.
Returns:
The distance between given DataRows.

getType

String getType()
Returns:
The type of the DistanceManager. See DistanceManagerFactory for valid types.
See Also:
#COS_DIST, #EUCLIDEAN_DIST, #MANHATTAN_DIST


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.