org.knime.base.node.mine.cluster.hierarchical.distfunctions
Interface DistanceFunction

All Superinterfaces:
Serializable
All Known Implementing Classes:
EuclideanDist, ManhattanDist, MinkowskiDist

public interface DistanceFunction
extends Serializable

The interface a distance function must implement.

Author:
Christoph Sieb, University of Konstanz

Nested Class Summary
static class DistanceFunction.Names
          The name sof the implemented distance functions.
 
Method Summary
 double calcDistance(DataRow firstDataRow, DataRow secondDataRow, int[] includedCols)
          Calculates the distance between two data rows.
 

Method Detail

calcDistance

double calcDistance(DataRow firstDataRow,
                    DataRow secondDataRow,
                    int[] includedCols)
Calculates the distance between two data rows.

Parameters:
firstDataRow - the first data row used to calculate the distance
secondDataRow - the second data row used to calculate the distance
includedCols - the columns to use for the distance calculation
Returns:
the distance of the two rows


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.