|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simulator.math.QualityMeasure
public abstract class QualityMeasure
This class is the basis of various implementations of distance functions.
Field Summary | |
---|---|
protected double |
defaultValue
The return value of the distance function in cases where the distance cannot be computed. |
protected MeanFunction |
meanFunction
|
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
double |
distance(Iterable<? extends Number> x,
Iterable<? extends Number> y)
Returns the distance of the two vectors x and y where the currently set root is used. |
abstract double |
distance(Iterable<? extends Number> x,
Iterable<? extends Number> y,
double defaultValue)
Returns the distance of the two vectors x and y with the given root. |
double |
distance(MultiTable.Block x,
MultiTable.Block expected)
|
double |
distance(MultiTable x,
MultiTable expected)
|
ArrayList<Double> |
getColumnDistances(MultiTable.Block x,
MultiTable.Block 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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double defaultValue
protected MeanFunction meanFunction
Constructor Detail |
---|
public QualityMeasure()
public QualityMeasure(double defaultValue)
defaultValue
- public QualityMeasure(double defaultValue, MeanFunction meanFunction)
meanFunction
and defaultValue
.
defaultValue
- meanFunction
- Method Detail |
---|
public double distance(Iterable<? extends Number> x, Iterable<? extends Number> y)
NaN
values do also not
contribute to the distance.
x
- y
-
IllegalArgumentException
public abstract double distance(Iterable<? extends Number> x, Iterable<? extends Number> 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 double distance(MultiTable.Block x, MultiTable.Block expected)
x
- expected
-
public ArrayList<Double> getColumnDistances(MultiTable.Block x, MultiTable.Block 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 set
|
Generated December 13 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |