Package boofcv.alg.video
Interface RelativeBetter
- All Known Implementing Classes:
RelativeBetter.ErrorHardRatio
,RelativeBetter.ErrorHardRatioSq
,RelativeBetter.MaximizeSoftRatio
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
Modifier and TypeInterfaceDescriptionstatic class
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.static class
Same asRelativeBetter.ErrorHardRatio
but it assumes the input has been squaredstatic class
Computes a ratio where the values are being maximized. -
Method Summary
Modifier and TypeMethodDescriptiondouble
computeBetterValue
(double valueA, double valueB) Computes how good valueA is relative to valueB.
-
Method Details
-
computeBetterValue
double 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.- Parameters:
valueA
- Goodness value for AvalueB
- Goodness value for B- Returns:
- goodness ratio of A over B
-