|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.mds.distances.ManhattanDistanceManager
public class ManhattanDistanceManager
Constructor Summary | |
---|---|
ManhattanDistanceManager()
Creates instance of ManhattanDistanceManager , which
computes the manhattan distances between rows and cells. |
|
ManhattanDistanceManager(boolean fuzzy)
Creates instance of ManhattanDistanceManager , which
computes Manhattan distances between DataRow s and
SotaTreeCell s. |
Method Summary | |
---|---|
double |
getDistance(DataPoint point1,
DataPoint point2)
Returns the distance between the given DataPoint s, point1
and point2. |
double |
getDistance(DataRow row1,
DataRow row2)
Returns the distance between the given DataRow s, row1 and
row2. |
boolean |
getIgnoreType()
|
String |
getType()
|
void |
setIgnoreType(boolean ignoreType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManhattanDistanceManager(boolean fuzzy)
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.
fuzzy
- if true
only fuzzy data is respected, if
false
only number datapublic ManhattanDistanceManager()
ManhattanDistanceManager
, which
computes the manhattan distances between rows and cells. The type
(fuzzy or number) will be ignored. When dealing with fuzzy values the
center of gravity is used, otherwise the numerical value.
Method Detail |
---|
public double getDistance(DataRow row1, DataRow row2)
DataRow
s, row1 and
row2. The distance metric is up to the concrete implementation.
getDistance
in interface DistanceManager
row1
- First DataRow
to compute distance.row2
- Second DataRow
to compute distance.
DataRow
s.public double getDistance(DataPoint point1, DataPoint point2)
DataPoint
s, point1
and point2. The distance metric is up to the concrete implementation.
getDistance
in interface DistanceManager
point1
- First DataPoint
to compute distance.point2
- Second DataPoint
to compute distance.
DataRow
s.public String getType()
getType
in interface DistanceManager
DistanceManager
. See
DistanceManagerFactory
for valid types.#COS_DIST
,
#EUCLIDEAN_DIST
,
#MANHATTAN_DIST
public boolean getIgnoreType()
public void setIgnoreType(boolean ignoreType)
ignoreType
- the ignoreType to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |