Class MinSelector


  • public class MinSelector
    extends Selector
    Selector for min value.

    This selector considers Double.NaN values correspond to non-initialized data that should be ignored rather than selected.

    Author:
    Luc Maisonobe
    See Also:
    MaxSelector
    • Method Detail

      • getInstance

        public static MinSelector getInstance()
        Get the unique instance.
        Returns:
        unique instance of the min selector.
      • selectFirst

        public boolean selectFirst​(double v1,
                                   double v2)
        Check if first value should be selected.
        Specified by:
        selectFirst in class Selector
        Parameters:
        v1 - first value
        v2 - second value
        Returns:
        true if v1 is lower than v2, or if v2 is Double.NaN