org.orekit.propagation.analytical.twod
Class DateIntervalLinearFunction

java.lang.Object
  extended by org.orekit.propagation.analytical.twod.AbstractDateIntervalFunction
      extended by org.orekit.propagation.analytical.twod.DateIntervalLinearFunction
All Implemented Interfaces:
UnivariateDateFunction

public class DateIntervalLinearFunction
extends AbstractDateIntervalFunction

This class represents a piecewise linear function of date.
The function is defined by an initial condition x0 at a date t[0] and all first derivatives xDot[i] on intervals [t[i],t[i+1]]. For date out of bounds, 1st derivative is considered as zero.

Since:
3.0
Version:
$Id: DateIntervalLinearFunction.java 17582 2017-05-10 12:58:16Z bignon $
Author:
Emmanuel Bignon
Concurrency :
thread-safe

Constructor Summary
DateIntervalLinearFunction(DateIntervalLinearFunction function)
          Clone constructor.
DateIntervalLinearFunction(double ax0, AbsoluteDate[] timeIntervals, double[] axDotIntervals)
          Constructor.
 
Method Summary
 double getX0()
          Returns value at first date.
 double[] getxDotIntervals()
          Returns a copy of 1st order derivatives on date intervals.
 double value(AbsoluteDate t)
          Returns value of function at provided date.
 
Methods inherited from class org.orekit.propagation.analytical.twod.AbstractDateIntervalFunction
getDateIntervals, getIndexInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateIntervalLinearFunction

public DateIntervalLinearFunction(double ax0,
                                  AbsoluteDate[] timeIntervals,
                                  double[] axDotIntervals)
Constructor.

Parameters:
ax0 - value at first date t[0]
timeIntervals - date intervals (must be chronologically sorted)
axDotIntervals - 1st order derivatives on date intervals (size of vector must be of timeIntervals size - 1)

DateIntervalLinearFunction

public DateIntervalLinearFunction(DateIntervalLinearFunction function)
Clone constructor.

Parameters:
function - function to copy
Method Detail

getX0

public double getX0()
Returns value at first date.

Returns:
x0 value at first date

getxDotIntervals

public double[] getxDotIntervals()
Returns a copy of 1st order derivatives on date intervals.

Returns:
1st order derivatives on date intervals

value

public double value(AbsoluteDate t)
Returns value of function at provided date.

Parameters:
t - a date
Returns:
value of function at provided date


Copyright © 2017 CNES. All Rights Reserved.