Package org.orekit.rugged.utils
Class MinSelector
- java.lang.Object
-
- org.orekit.rugged.utils.Selector
-
- org.orekit.rugged.utils.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinSelector
getInstance()
Get the unique instance.boolean
selectFirst(double v1, double v2)
Check if first value should be selected.
-
-
-
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 classSelector
- Parameters:
v1
- first valuev2
- second value- Returns:
- true if v1 is lower than v2, or if v2 is
Double.NaN
-
-