|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.sota.distances.Distances
public final class Distances
Method Summary | |
---|---|
static double |
getCorrelationDistance(DataRow row1,
DataRow row2,
double offset,
boolean abs,
boolean fuzzy)
Returns the coefficient of correlation distance between the rows with a given offset. |
static double |
getCorrelationDistance(DataRow row,
SotaTreeCell cell,
double offset,
boolean abs,
boolean fuzzy)
Returns the coefficient of correlation distance between the cells values and the number cells of the given row with a 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 |
getCosinusDistance(DataRow row,
SotaTreeCell cell,
double offset,
boolean fuzzy)
Returns the cosinus distance between the cells values and the number cells of the given row with a given offset. |
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 |
getEuclideanDistance(DataRow row,
SotaTreeCell cell,
boolean fuzzy)
Returns the euclidean distance between a given DataRow
and SotaTreeCell using the Minkowski distance with
power 2. |
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 |
getManhattanDistance(DataRow row,
SotaTreeCell cell,
boolean fuzzy)
Returns the manhattan distance between a given DataRow
and SotaTreeCell using the Minkowski distance with
power 1. |
static double |
getMean(DataRow row,
boolean fuzzy)
Returns the mean value of the given row. |
static double |
getMean(SotaTreeCell cell)
Returns the mean value of the given cell. |
static double |
getMinkowskiDistance(int power,
DataRow row1,
DataRow row2,
boolean fuzzy)
Calculates the Minkowski distance between two rows. |
static double |
getMinkowskiDistance(int power,
DataRow row,
SotaTreeCell cell,
boolean fuzzy)
Calculates the Minkowski distance between a regular DataRow
and a SotaTreeCell . |
static double |
getStandardDeviation(DataRow row,
boolean fuzzy)
Returns the standard deviation of the given row. |
static double |
getStandardDeviation(SotaTreeCell cell)
Returns the standard deviation of the given cell. |
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, 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 row, SotaTreeCell cell, boolean fuzzy)
DataRow
and a SotaTreeCell
. If fuzzy is set true only columns with
cells containing numbers are used to compute the distance. If the number
of columns, which are used to compute the distance, contained in the
given DataRow
is different to the number of cells contained
in the given SotaTreeCell
, only the first n columns
of the DataRow
or n cells of the
SotaTreeCell
are used to compute the distance. The rest is
simply ignored.
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.row
- The row to compute the distance.cell
- The cell to compute the distance.fuzzy
- If true only fuzzy data is taken into account, if
false
only number data.
public static double getEuclideanDistance(DataRow row, SotaTreeCell cell, boolean fuzzy)
DataRow
and SotaTreeCell
using the Minkowski distance with
power 2.
row
- row to compute the distancecell
- cell to compute the distancefuzzy
- 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, 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 getManhattanDistance(DataRow row, SotaTreeCell cell, boolean fuzzy)
DataRow
and SotaTreeCell
using the Minkowski distance with
power 1.
row
- row to compute the distancecell
- cell to compute the distancefuzzy
- 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, 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 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(DataRow row, SotaTreeCell cell, double offset, boolean fuzzy)
row
- row to compute the cosinus distance ofcell
- cell 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 getCorrelationDistance(DataRow row, SotaTreeCell cell, double offset, boolean abs, boolean fuzzy)
row
- row to compute the coefficient of correlationcell
- cell to compute the coefficient of correlationoffset
- offset to substract coefficient of correlation fromabs
- flags if correlations distance should be used absolutefuzzy
- if true
only fuzzy data is respected, if
false
only number data
public static double getCorrelationDistance(DataRow row1, DataRow row2, double offset, boolean abs, boolean fuzzy)
row1
- first row to compute the coefficient of correlationrow2
- second rell to compute the coefficient of correlationoffset
- offset to substract coefficient of correlation fromabs
- flags if correlations distance should be used absolutefuzzy
- if true
only fuzzy data is respected, if
false
only number data
public static double getStandardDeviation(DataRow row, boolean fuzzy)
row
- the row to compute the standard deviation of.fuzzy
- if true
only fuzzy data is respected, if
false
only number data
public static double getStandardDeviation(SotaTreeCell cell)
cell
- the SotaTreeCell to compute the standard deviation of
public static double getMean(DataRow row, boolean fuzzy)
row
- row to get the mean value offuzzy
- if true
only fuzzy data is respected, if
false
only number data
public static double getMean(SotaTreeCell cell)
cell
- SotaTreeCell to get the mean value of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |