|
||||||||||
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.Distances
public final class Distances
Method Summary | |
---|---|
static double |
getCosinusDistance(DataPoint point1,
DataPoint point2,
double offset)
Computes the cosinus distance between the given two DataPoint s, with given offset. |
static double |
getCosinusDistance(DataRow row1,
DataRow row2,
double offset,
boolean fuzzy)
Computes the cosinus distance between the given two rows, with given offset. |
static double |
getEuclideanDistance(DataPoint point1,
DataPoint point2)
Calculates the euclidean distance between two DataPoints s
using the Minkowski distance with power 2. |
static double |
getEuclideanDistance(DataRow row1,
DataRow row2)
Calculates the euclidean distance between two DataRow s
using the Minkowski distance with power 2. |
static double |
getEuclideanDistance(DataRow row1,
DataRow row2,
boolean fuzzy)
Calculates the euclidean distance between two DataRow s
using the Minkowski distance with power 2. |
static double |
getManhattanDistance(DataPoint point1,
DataPoint point2)
Calculates the Manhattan distance between two DataPoints s
using the Minkowski distance with power 1. |
static double |
getManhattanDistance(DataRow row1,
DataRow row2)
Calculates the Manhattan distance between two DataRow s
using the Minkowski distance with power 1. |
static double |
getManhattanDistance(DataRow row1,
DataRow row2,
boolean fuzzy)
Calculates the Manhattan distance between two DataRow s
using the Minkowski distance with power 1. |
static double |
getMinkowskiDistance(int power,
DataPoint point1,
DataPoint point2)
Calculates the Minkowski distance between two DataPoint s. |
static double |
getMinkowskiDistance(int power,
DataRow row1,
DataRow row2)
Calculates the Minkowski distance between two rows no matter if they contain fuzzy or number values. |
static double |
getMinkowskiDistance(int power,
DataRow row1,
DataRow row2,
boolean fuzzy)
Calculates the Minkowski distance between two rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double getMinkowskiDistance(int power, DataPoint point1, DataPoint point2)
DataPoint
s.
The given power specifies the distance kind, i.e. if power
is set to 2 the euclidean distance will be computed.
power
- The power to use.point1
- The first pointpoint2
- The second point
public static double getMinkowskiDistance(int power, DataRow row1, DataRow row2, boolean fuzzy)
power
- The power to use.row1
- The first rowrow2
- The second rowfuzzy
- If true only fuzzy data is taken into account, if
false
only number data.
public static double getMinkowskiDistance(int power, DataRow row1, DataRow row2)
power
- The power to use.row1
- The first rowrow2
- The second row
public static double getEuclideanDistance(DataRow row1, DataRow row2, boolean fuzzy)
DataRow
s
using the Minkowski distance with power 2.
row1
- the first rowrow2
- the second rowfuzzy
- if true
only fuzzy data is respected, if
false
only number data
getMinkowskiDistance(int, DataRow, DataRow, boolean)
public static double getEuclideanDistance(DataRow row1, DataRow row2)
DataRow
s
using the Minkowski distance with power 2.
row1
- the first rowrow2
- the second row
getMinkowskiDistance(int, DataRow, DataRow)
public static double getEuclideanDistance(DataPoint point1, DataPoint point2)
DataPoints
s
using the Minkowski distance with power 2.
point1
- The first pointpoint2
- The second point
getMinkowskiDistance(int, DataPoint, DataPoint)
public static double getManhattanDistance(DataRow row1, DataRow row2, boolean fuzzy)
DataRow
s
using the Minkowski distance with power 1.
row1
- the first rowrow2
- the second rowfuzzy
- if true
only fuzzy data is respected, if
false
only number data
getMinkowskiDistance(int, DataRow, DataRow, boolean)
public static double getManhattanDistance(DataRow row1, DataRow row2)
DataRow
s
using the Minkowski distance with power 1.
row1
- the first rowrow2
- the second row
getMinkowskiDistance(int, DataRow, DataRow)
public static double getManhattanDistance(DataPoint point1, DataPoint point2)
DataPoints
s
using the Minkowski distance with power 1.
point1
- The first pointpoint2
- The second point
getMinkowskiDistance(int, DataPoint, DataPoint)
public static double getCosinusDistance(DataRow row1, DataRow row2, double offset, boolean fuzzy)
row1
- first row to compute the cosinus distance ofrow2
- second row to compute the cosinus distance ofoffset
- offset to substract cosinus distance fromfuzzy
- if true
only fuzzy data is respected, if
false
only number data
public static double getCosinusDistance(DataPoint point1, DataPoint point2, double offset)
DataPoint
s, with given offset.
point1
- first point to compute the cosinus distance ofpoint2
- second point to compute the cosinus distance ofoffset
- offset to substract cosinus distance from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |