- All Known Implementing Classes:
public interface RelativeBetter
Used to compare how much better a metric A is than metric B. If A is not better then 0.0 is returned.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
static classCompares 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.
static classSame as
RelativeBetter.ErrorHardRatiobut it assumes the input has been squared
static classComputes a ratio where the values are being maximized.
Modifier and Type Method Description
(double valueA, double valueB)Computes how good valueA is relative to valueB.
computeBetterValuedouble computeBetterValue(double valueA, double valueB)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.
valueA- Goodness value for A
valueB- Goodness value for B
- goodness ratio of A over B