Package net.simplace.sim.util.statistics
Klasse CorrelationCoefficient
java.lang.Object
net.simplace.sim.util.statistics.ErrorCalculationMethod
net.simplace.sim.util.statistics.CorrelationCoefficient
Methods for calculating the correlation coefficient
See D. Wallach, Working with Dynamic Crop Models, p. 22
- Autor:
- Gunther Krauss
-
Feldübersicht
Von Klasse geerbte Felder net.simplace.sim.util.statistics.ErrorCalculationMethod
count, sum -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddDataPair(double observed, double calculated) Adds a pair of observed and calculated data to the listGets the full name or a short description of the error methodgetLabel()Gets the label of the calculation methoddoublegetValue()Calculates the (error)value from the list of pairsdoubleReturns the value that is considered worst by the error calculation methodvoidinit()Initializes the calculation methodbooleanisBetter(double better, double worse) Checks if the first value is better than the second value with respect to the calcualtion method.
-
Konstruktordetails
-
CorrelationCoefficient
public CorrelationCoefficient()
-
-
Methodendetails
-
init
public void init()Beschreibung aus Klasse kopiert:ErrorCalculationMethodInitializes the calculation method- Setzt außer Kraft:
initin KlasseErrorCalculationMethod
-
getWorstValue
public double getWorstValue()Beschreibung aus Klasse kopiert:ErrorCalculationMethodReturns the value that is considered worst by the error calculation method- Setzt außer Kraft:
getWorstValuein KlasseErrorCalculationMethod- Gibt zurück:
- worstValue
-
addDataPair
public void addDataPair(double observed, double calculated) Beschreibung aus Klasse kopiert:ErrorCalculationMethodAdds a pair of observed and calculated data to the list- Angegeben von:
addDataPairin KlasseErrorCalculationMethod- Parameter:
observed-calculated-
-
getValue
public double getValue()Beschreibung aus Klasse kopiert:ErrorCalculationMethodCalculates the (error)value from the list of pairs- Angegeben von:
getValuein KlasseErrorCalculationMethod- Gibt zurück:
- errorvalue
-
isBetter
public boolean isBetter(double better, double worse) Beschreibung aus Klasse kopiert:ErrorCalculationMethodChecks if the first value is better than the second value with respect to the calcualtion method.- Angegeben von:
isBetterin KlasseErrorCalculationMethod- Parameter:
better-worse-- Gibt zurück:
- true if first value is better than second
-
getLabel
Beschreibung aus Klasse kopiert:ErrorCalculationMethodGets the label of the calculation method- Angegeben von:
getLabelin KlasseErrorCalculationMethod- Gibt zurück:
- label
-
getDescription
Beschreibung aus Klasse kopiert:ErrorCalculationMethodGets the full name or a short description of the error method- Setzt außer Kraft:
getDescriptionin KlasseErrorCalculationMethod- Gibt zurück:
- description or full name
-