public abstract class QualityMeasure extends Object implements Serializable
| Constructor and 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 and 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) |
List<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.
|
Map<String,Double> |
getMaxAbsDistances(MultiTable x,
MultiTable expected) |
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) |
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 - IllegalArgumentExceptionpublic 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.IllegalArgumentExceptionpublic double distance(MultiTable x, MultiTable expected)
x - expected - public List<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 Map<String,Double> getMaxAbsDistances(MultiTable x, MultiTable expected)
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–2021. All rights reserved.