Serializable
RelativeEuclideanDistance
, RelativeManhattanDistance
public 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, wait
distance, distance, getColumnDistances, getDefaultValue, getMeanFunction, setMeanFunction
protected 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)
QualityMeasure
Double.NaN
values are also ignored.distance
in class QualityMeasure
x
- an arrayexpected
- another arraydefaultValue
- The value to be returned in cases in which no distance
computation is possible.public void setDefaultValue(double value)
QualityMeasure
setDefaultValue
in class QualityMeasure
public void setRoot(double root)
root
- Copyright © 2007–2018. All rights reserved.