public static enum TimeStampedInterpolableEphemeris.SearchMethod extends Enum<TimeStampedInterpolableEphemeris.SearchMethod>
Enum Constant and Description |
---|
DICHOTOMY
This method only relies on indexes.
It simply cuts the remaining interval in half at each step. |
PROPORTIONAL
This method tries to find the best guess for the next middle point by computing the position of the searched
date as if the samples were evenly distributed.
If the samples are evenly distributed, the complexity is O(log(log(n))). If it is not the case, the complexity is can be higher, up to O(n) if the samples are exponentially distributed for example. |
Modifier and Type | Method and Description |
---|---|
abstract int |
midPoint(int indexInf,
int indexSup,
AbsoluteDate dateInf,
AbsoluteDate dateSup,
AbsoluteDate date)
Computes the middle point index in the range [indexInf ; indexSup].
|
static TimeStampedInterpolableEphemeris.SearchMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeStampedInterpolableEphemeris.SearchMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeStampedInterpolableEphemeris.SearchMethod DICHOTOMY
public static final TimeStampedInterpolableEphemeris.SearchMethod PROPORTIONAL
public static TimeStampedInterpolableEphemeris.SearchMethod[] values()
for (TimeStampedInterpolableEphemeris.SearchMethod c : TimeStampedInterpolableEphemeris.SearchMethod.values()) System.out.println(c);
public static TimeStampedInterpolableEphemeris.SearchMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int midPoint(int indexInf, int indexSup, AbsoluteDate dateInf, AbsoluteDate dateSup, AbsoluteDate date)
indexInf
- Inferior indexindexSup
- Superior indexdateInf
- Inferior datedateSup
- Superior datedate
- The date to look forCopyright © 2023 CNES. All rights reserved.