org.knime.base.node.mine.sota.distances
Class ManhattanDistanceManager
java.lang.Object
org.knime.base.node.mine.sota.distances.ManhattanDistanceManager
- All Implemented Interfaces:
- DistanceManager
public class ManhattanDistanceManager
- extends Object
- implements DistanceManager
- Author:
- Kilian Thiel, University of Konstanz
Constructor Summary |
ManhattanDistanceManager(boolean fuzzy)
Creates instance of ManhattanDistanceManager , which
computes manhattan distances between DataRow s and
SotaTreeCell s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManhattanDistanceManager
public ManhattanDistanceManager(boolean fuzzy)
- Creates instance of
ManhattanDistanceManager
, which
computes manhattan distances between DataRow
s and
SotaTreeCell
s. If fuzzy is set true
, only
fuzzy columns are considered, if false
only number
columns.
- Parameters:
fuzzy
- if true
only fuzzy data is respected, if
false
only number data
getDistance
public double getDistance(DataRow row,
SotaTreeCell cell)
- Returns the distance between the given cell and row. The distance metric
is up to the concrete implementation.
- Specified by:
getDistance
in interface DistanceManager
- Parameters:
row
- row to compute distancecell
- SotaTreeCell to compute distance
- Returns:
- the distance between given row and cell
getDistance
public double getDistance(DataRow row1,
DataRow row2)
- Returns the distance between the given row1 and row2. The distance metric
is up to the concrete implementation.
- Specified by:
getDistance
in interface DistanceManager
- Parameters:
row1
- first row to compute distancerow2
- second row to compute distance
- Returns:
- the distance between given row1 and row2
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.