|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.bfn.Distance
public final class Distance
Computes the Euclidean distance between two vectors.
Method Summary | |
---|---|
double |
compute(DataRow x,
DataRow y)
Computes the Euclidean distance between two normalized rows. |
double |
compute(double[] x,
DataRow y)
Computes the Euclidean distance between two normalized vectors. |
double |
compute(double[] x,
double[] y)
Computes the Euclidean distance between two normalized vectors. |
double |
compute(double[] x,
DoubleValue[] y)
Computes the Euclidean distance between two normalized vectors. |
double |
compute(DoubleValue[] x,
DataRow y)
Computes the Euclidean distance between two normalized vectors. |
double |
compute(DoubleValue[] x,
DoubleValue[] y)
Computes the Euclidean distance between the two normalized arrays. |
double |
computeSquaredEuclidean(double[] x,
double[] y)
Computes the Euclidean distance between two normalized vectors. |
static Distance |
getInstance()
Returns a new Distance object. |
String |
toString()
Returns string representation Euclidean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final Distance getInstance()
Distance
object.
public final double compute(DataRow x, DataRow y)
x
- a rowy
- another row
x
and y
.
NullPointerException
- if one of the given rows is
null
public final double compute(DoubleValue[] x, DataRow y)
x
- an array of double cellsy
- a row
x
and
y
NullPointerException
- if one of the given rows is
null
public final double compute(double[] x, DataRow y)
x
- an array of doublesy
- a row
x
and
y
NullPointerException
- if one of the given rows is
null
public final double compute(double[] x, double[] y)
x
- an array of doublesy
- an array of doubles
x
and
y
.
NullPointerException
- if one of the given arrays is
null
public final double computeSquaredEuclidean(double[] x, double[] y)
x
- an array of doublesy
- an array of doubles
x
and
y
.
NullPointerException
- if one of the given arrays is
null
public final double compute(double[] x, DoubleValue[] y)
x
- an array of doublesy
- an array of DoubleValues
x
and
y
NullPointerException
- if one of the given rows is
null
public final double compute(DoubleValue[] x, DoubleValue[] y)
x
- an arrayy
- another array
x
and
y
NullPointerException
- if one of the given arrays is
null
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |