public class ConstantFunction extends ParamDiffFunction
Constructor and Description |
---|
ConstantFunction(double value)
Simple constructor with a given name and value.
|
ConstantFunction(Parameter param)
Simple constructor with a given
Parameter . |
ConstantFunction(String name,
double value)
Simple constructor with a given name and value.
|
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()
Value of the parameter.
|
double |
value(SpacecraftState s)
Getting the value of the function.
|
isDifferentiableBy, supportsParameter
addParameter
public ConstantFunction(Parameter param)
Parameter
.param
- a parameterpublic ConstantFunction(String name, double value)
name
- a parameter namevalue
- a parameter valuepublic ConstantFunction(double value)
value
- a parameter valuepublic double value(SpacecraftState s)
s
- the spacecraft statepublic double value()
public 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.