public class ConstantFunction extends LinearCombinationFunction
This function is serializable.
functions, PARAMETER_PREFIX_NAME| Constructor and Description |
|---|
ConstantFunction(double value)
Constructor of a constant function f = a0 using the input value.
|
ConstantFunction(Parameter param)
Constructor of a constant function f = a0 using the input parameter.
|
ConstantFunction(String name,
double value)
Constructor of a constant function f = a0 using the input value.
|
| Modifier and Type | Method and Description |
|---|---|
Parameter |
getParameter()
Getter for the parameter associated to this constant function.
|
ArrayList<Parameter> |
getParameters()
Return the function parameter [a0] stored in a list.
|
String |
toString()
Getter for a String representation of this function.
|
double |
value()
Value of the parameter.
|
derivativeValue, isDifferentiableBy, supportsParameter, valuepublic ConstantFunction(double value)
value - the a0 parameter valuepublic ConstantFunction(String name, double value)
name - the a0 parameter namevalue - the a0 parameter valuepublic ConstantFunction(Parameter param)
param - the a0 parameterNullArgumentException - if param is nullpublic double value()
public Parameter getParameter()
public ArrayList<Parameter> getParameters()
The list is returned in a shallow copy.
getParameters in interface IParameterizablegetParameters in class LinearCombinationFunctionCopyright © 2025 CNES. All rights reserved.