public class LinearFunction extends ParamDiffFunction
Modifier and Type | Field and Description |
---|---|
static String |
A
Default function slope name.
|
static String |
B
Default ordinate origin name.
|
Constructor and Description |
---|
LinearFunction(AbsoluteDate t0,
double slope,
double zeroValue)
Simple constructor of a linear function a * (t - t0) + b
using input constant a, b and initial date.
|
LinearFunction(AbsoluteDate t0,
Parameter slope,
Parameter zeroValue)
|
Modifier and Type | Method and Description |
---|---|
double |
derivativeValue(Parameter p,
SpacecraftState state)
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 static final String A
public static final String B
public LinearFunction(AbsoluteDate t0, Parameter slope, Parameter zeroValue)
public LinearFunction(AbsoluteDate t0, double slope, double zeroValue)
t0
- initial dateslope
- Function's slope : azeroValue
- Function's value when t=0 : bpublic double value(SpacecraftState s)
s
- the spacecraft statepublic double derivativeValue(Parameter p, SpacecraftState state)
p
- parameterstate
- current statepublic ArrayList<Parameter> getParameters()
getParameters
in interface IParameterizable
getParameters
in class Parameterizable
Copyright © 2017 CNES. All rights reserved.