public interface DatePolynomialFunctionInterface extends UnivariateDateFunction
Modifier and Type | Method and Description |
---|---|
default double |
dateToDouble(AbsoluteDate date)
Get the time as double corresponding to the given
AbsoluteDate . |
default AbsoluteDate |
doubleToDate(double time)
Get the
AbsoluteDate corresponding to the given time as double. |
static AbsoluteDate |
getAbsoluteDateFromDoubleDate(AbsoluteDate originDate,
Double timeFactor,
double timeIn)
Transform a time as double into an
AbsoluteDate , taking into account the provided origin date and the
time factor. |
double[] |
getCoefficients()
Get the polynomial coefficients.
|
int |
getDegree()
Return the polynomial degree.
|
static double |
getDoubleDateFromAbsoluteDate(AbsoluteDate originDate,
Double timeFactor,
AbsoluteDate dateIn)
Transform an
AbsoluteDate into a time as double, taking into account the provided origin date and time
factor. |
AbsoluteDate |
getT0()
Get the origin date.
|
DatePolynomialFunctionInterface |
polynomialDerivative()
Return the derivative date polynomial function.
|
DatePolynomialFunctionInterface |
primitive(AbsoluteDate date0,
double ordinate0)
Return the primitive date polynomial function at the given date and for the given function value at abscissa0.
|
value
AbsoluteDate getT0()
default double dateToDouble(AbsoluteDate date)
AbsoluteDate
.date
- the given AbsoluteDate
default AbsoluteDate doubleToDate(double time)
AbsoluteDate
corresponding to the given time as double.time
- the given time as double with respect to time originAbsoluteDate
int getDegree()
double[] getCoefficients()
DatePolynomialFunctionInterface polynomialDerivative()
DatePolynomialFunctionInterface primitive(AbsoluteDate date0, double ordinate0)
date0
- the date of interestordinate0
- the function value at abscissa0static double getDoubleDateFromAbsoluteDate(AbsoluteDate originDate, Double timeFactor, AbsoluteDate dateIn)
AbsoluteDate
into a time as double, taking into account the provided origin date and time
factor.originDate
- the given origin datetimeFactor
- the given output time as double is equal to the duration between the originDate and
the dateIn, divided by this time factor. If null
, a unit time factor (value 1.0) is useddateIn
- the given datestatic AbsoluteDate getAbsoluteDateFromDoubleDate(AbsoluteDate originDate, Double timeFactor, double timeIn)
AbsoluteDate
, taking into account the provided origin date and the
time factor.originDate
- the given origin datetimeFactor
- the output date is equal to the origin date shifted by timeIn multiplied by this time factor.
If null
, a unit time factor (value 1.0) is usedtimeIn
- the given time as double to be transformedAbsoluteDate
Copyright © 2023 CNES. All rights reserved.