public class PiecewiseFunction extends ParamDiffFunction
This class is used to define parameterizable piecewize function. It is defined by a list of IParamDiffFunction, each sub function applying to a certain interval defined by the first date of the interval.
Constructor and Description |
---|
PiecewiseFunction(ArrayList<IParamDiffFunction> flist,
ArrayList<AbsoluteDate> xlist)
Simple constructor with 2 lists (IParamDiffFunction and AbsoluteDate) where
dates list represent the connection points between functions.
|
Modifier and Type | Method and Description |
---|---|
double |
derivativeValue(Parameter p,
SpacecraftState s)
Compute the derivative value with respect to the input parameter.
|
ArrayList<Parameter> |
getParameters()
Get the supported parameters.
|
double |
value(SpacecraftState s)
Getting the value of the function.
|
isDifferentiableBy, supportsParameter
addParameter
public PiecewiseFunction(ArrayList<IParamDiffFunction> flist, ArrayList<AbsoluteDate> xlist) throws PatriusException
flist
- list of IParamDiffFunctionxlist
- list of AbsoluteDate ordered chronologicallyPatriusException
- if xlist.size() != flist.size() - 1 or xlist is not ordered chronologicallypublic double value(SpacecraftState s)
s
- the spacecraft statepublic double derivativeValue(Parameter p, SpacecraftState s)
p
- parameters
- current statepublic ArrayList<Parameter> getParameters()
getParameters
in interface IParameterizable
getParameters
in class Parameterizable
Copyright © 2017 CNES. All rights reserved.