SerializableRelativeEuclideanDistance, RelativeManhattanDistancepublic class Relative_N_Metric extends QualityMeasure
N_Metric
distance.| Modifier and Type | Field | Description |
|---|---|---|
protected N_Metric |
metric |
The metric the relative distance is based on.
|
defaultValue, meanFunction| Constructor | Description |
|---|---|
Relative_N_Metric() |
Default constructor
|
Relative_N_Metric(double root) |
Initialization with a certain n
|
Relative_N_Metric(N_Metric metric) |
Initialization with a given
N_Metric |
| Modifier and Type | Method | Description |
|---|---|---|
double |
distance(MultiTable.Block.Column x,
MultiTable.Block.Column expected,
double defaultValue) |
Returns the distance of the two vectors x and y with the given root.
|
void |
setDefaultValue(double value) |
Set the value to be returned by the distance function in cases, in which
no distance can be computed.
|
void |
setRoot(double root) |
Sets the root
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdistance, distance, getColumnDistances, getDefaultValue, getMeanFunction, setMeanFunctionprotected N_Metric metric
public Relative_N_Metric()
public Relative_N_Metric(double root)
root - public double distance(MultiTable.Block.Column x, MultiTable.Block.Column expected, double defaultValue)
QualityMeasureDouble.NaN values are also ignored.distance in class QualityMeasurex - an arrayexpected - another arraydefaultValue - The value to be returned in cases in which no distance
computation is possible.public void setDefaultValue(double value)
QualityMeasuresetDefaultValue in class QualityMeasurepublic void setRoot(double root)
root - Copyright © 2007–2018. All rights reserved.