Class RelativeBetter.ErrorHardRatio

All Implemented Interfaces:
Enclosing interface:

public static class RelativeBetter.ErrorHardRatio extends Object implements RelativeBetter
Compares error metrics (0.0 = best, larger is worse) with a hard minimum in the value of B to dampen noise for small values and avoid divide by zero errors.
  • Constructor Details

    • ErrorHardRatio

      public ErrorHardRatio(double minimumB)
  • Method Details

    • computeBetterValue

      public double computeBetterValue(double valueA, double valueB)
      Description copied from interface: RelativeBetter
      Computes how good valueA is relative to valueB. If equal or N is better than 0.0 is returned. Otherwise a positive value is returned.
      Specified by:
      computeBetterValue in interface RelativeBetter
      valueA - Goodness value for A
      valueB - Goodness value for B
      goodness ratio of A over B