Serializable
N_Metric
, PearsonCorrelation
, Relative_N_Metric
public abstract class QualityMeasure extends Object implements Serializable
Modifier and Type | Field | Description |
---|---|---|
protected double |
defaultValue |
The return value of the distance function in cases where the distance
cannot be computed.
|
protected MeanFunction |
meanFunction |
Constructor | Description |
---|---|
QualityMeasure() |
Default constructor.
|
QualityMeasure(double defaultValue) |
Constructor, which allows setting the parameter value for default value.
|
QualityMeasure(double defaultValue,
MeanFunction meanFunction) |
Constructor, which allows setting the parameter values for
meanFunction and defaultValue . |
Modifier and Type | Method | Description |
---|---|---|
double |
distance(MultiTable.Block.Column x,
MultiTable.Block.Column y) |
Returns the distance of the two vectors x and y where the currently set
root is used.
|
abstract double |
distance(MultiTable.Block.Column x,
MultiTable.Block.Column y,
double defaultValue) |
Returns the distance of the two vectors x and y with the given root.
|
double |
distance(MultiTable x,
MultiTable expected) |
|
ArrayList<Double> |
getColumnDistances(MultiTable x,
MultiTable expected) |
Computes the distance of two matrices as the sum of the distances of each
row.
|
double |
getDefaultValue() |
Returns the default value that is returned by the distance function in
cases in which the computation of the distance is not possible.
|
MeanFunction |
getMeanFunction() |
|
void |
setDefaultValue(double defaultValue) |
Set the value to be returned by the distance function in cases, in which
no distance can be computed.
|
void |
setMeanFunction(MeanFunction meanFunction) |
protected double defaultValue
protected MeanFunction meanFunction
public QualityMeasure()
public QualityMeasure(double defaultValue)
defaultValue
- public QualityMeasure(double defaultValue, MeanFunction meanFunction)
meanFunction
and defaultValue
.defaultValue
- meanFunction
- public double distance(MultiTable.Block.Column x, MultiTable.Block.Column y)
NaN
values do also not
contribute to the distance.x
- y
- IllegalArgumentException
public abstract double distance(MultiTable.Block.Column x, MultiTable.Block.Column y, double defaultValue)
Double.NaN
values are also ignored.x
- an arrayy
- another arraydefaultValue
- The value to be returned in cases in which no distance
computation is possible.IllegalArgumentException
public double distance(MultiTable x, MultiTable expected)
x
- expected
- public ArrayList<Double> getColumnDistances(MultiTable x, MultiTable expected)
Double.NaN
values do also not
contribute to the distance. Only columns with matching identifiers are
considered for the distance computation.x
- expected
- public double getDefaultValue()
public final MeanFunction getMeanFunction()
public void setDefaultValue(double defaultValue)
defaultValue
- public final void setMeanFunction(MeanFunction meanFunction)
meanFunction
- the meanFunction to setCopyright © 2007–2018. All rights reserved.