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, having thus the maximal value when UnsignedBias is best.
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 value with respect to the calcualtion method.
      Overrides:
      isBetter in class Bias
      Returns:
      true if first value is better than second
    • getLabel

      public String getLabel()
      Description copied from class: ErrorCalculationMethod
      Gets the label of the calculation method
      Overrides:
      getLabel in class Bias
      Returns:
      label
    • getDescription

      public String getDescription()
      Description copied from class: ErrorCalculationMethod
      Gets the full name or a short description of the error method
      Overrides:
      getDescription in class Bias
      Returns:
      description or full name