| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simulator.math.QualityMeasure
org.simulator.math.Relative_N_Metric
public class Relative_N_Metric
Computes the relative distance of two vectors based on the N_Metric distance.
| Field Summary | |
|---|---|
| protected  N_Metric | metricThe metric the relative distance is based on. | 
| Fields inherited from class org.simulator.math.QualityMeasure | 
|---|
| defaultValue, meanFunction | 
| Constructor Summary | |
|---|---|
| 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 | |
| Method Summary | |
|---|---|
|  double | distance(Iterable<? extends Number> x,
         Iterable<? extends Number> 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 | 
| Methods inherited from class org.simulator.math.QualityMeasure | 
|---|
| distance, distance, distance, getColumnDistances, getDefaultValue, getMeanFunction, setMeanFunction | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected N_Metric metric
| Constructor Detail | 
|---|
public Relative_N_Metric()
public Relative_N_Metric(double root)
root - public Relative_N_Metric(N_Metric metric)
N_Metric
metric - | Method Detail | 
|---|
public double distance(Iterable<? extends Number> x,
                       Iterable<? extends Number> 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)
QualityMeasure
setDefaultValue in class QualityMeasurepublic void setRoot(double root)
root - | 
 | Generated December 13 2012 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||