Class RelativeBetter.MaximizeSoftRatio

java.lang.Object
boofcv.alg.video.RelativeBetter.MaximizeSoftRatio
All Implemented Interfaces:
RelativeBetter
Enclosing interface:
RelativeBetter

public static class RelativeBetter.MaximizeSoftRatio
extends Object
implements RelativeBetter
Computes a ratio where the values are being maximized. 0 to positive infinity. The denominator has epsilon added to it to dampen out small values and avoid divide by zero
  • Constructor Details

    • MaximizeSoftRatio

      public MaximizeSoftRatio​(double epsilon)
  • 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
      Parameters:
      valueA - Goodness value for A
      valueB - Goodness value for B
      Returns:
      goodness ratio of A over B