Package org.orekit.rugged.utils
Class MaxSelector
- java.lang.Object
-
- org.orekit.rugged.utils.Selector
-
- org.orekit.rugged.utils.MaxSelector
-
public class MaxSelector extends Selector
Selector for max value.This selector considers
Double.NaNvalues correspond to non-initialized data that should be ignored rather than selected.- Author:
- Luc Maisonobe
- See Also:
MinSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaxSelectorgetInstance()Get the unique instance.booleanselectFirst(double v1, double v2)Check if first value should be selected.
-
-
-
Method Detail
-
getInstance
public static MaxSelector 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:
selectFirstin classSelector- Parameters:
v1- first valuev2- second value- Returns:
- true if v1 is higher than v2, or if v2 is
Double.NaN
-
-