Package net.simplace.sim.util.statistics
Class SignedBias
java.lang.Object
net.simplace.sim.util.statistics.ErrorCalculationMethod
net.simplace.sim.util.statistics.Bias
net.simplace.sim.util.statistics.SignedBias
Methods for calculating the bias/mean error and comparing signed values.
See D. Wallach, Working with Dynamic Crop Models, p. 22
Calculation of bias is the same as for the Bias class.
Comparison is different. Bias chooses the set with
the smallest absolute value (the closest to 0), whereas
SignedBias chooses the set with the smallest signed
value (the closest to -Infinity).
It can be used to select the maximum of simulated values by
setting observed values to 0, having thus the maximal value
when UnsignedBias is best.
- Author:
- Gunther Krauss
-
Field Summary
Fields inherited from class net.simplace.sim.util.statistics.ErrorCalculationMethod
count, sum
-
Constructor Summary
-
Method Summary
Methods inherited from class net.simplace.sim.util.statistics.Bias
addDataPair, getValue
Methods inherited from class net.simplace.sim.util.statistics.ErrorCalculationMethod
getWorstValue, init
-
Constructor Details
-
SignedBias
public SignedBias()
-
-
Method Details
-
isBetter
public boolean isBetter(double better, double worse) Description copied from class:ErrorCalculationMethod
Checks if the first value is better than the second value with respect to the calcualtion method. -
getLabel
Description copied from class:ErrorCalculationMethod
Gets the label of the calculation method -
getDescription
Description copied from class:ErrorCalculationMethod
Gets the full name or a short description of the error method- Overrides:
getDescription
in classBias
- Returns:
- description or full name
-