Class SignedBias


public class SignedBias extends Bias
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: the bias is then the negative mean of the simulated values, so the best (smallest) SignedBias belongs to the largest simulated values.
Author:
Gunther Krauss
  • 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 one with respect to the calculation method (e.g. smaller for errors, closer to 1 for model efficiency).
      Overrides:
      isBetter in class Bias
      Parameters:
      better - the value that is checked to be better
      worse - the value to compare with
      Returns:
      true if the first value is better than the second
    • getLabel

      public String getLabel()
      Overrides:
      getLabel in class Bias
      Returns:
      the label (abbreviation) of the calculation method, e.g. RMSE
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class Bias
      Returns:
      the full name or a short description of the method (empty by default)