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 |
---|---|
ArrayList<Parameter> |
getParameters()
Return the function parameter [a0] (also called [value]) stored in a list.
|
double |
value()
Value of the parameter.
|
derivativeValue, isDifferentiableBy, supportsParameter, value
public 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 null
public double value()
public ArrayList<Parameter> getParameters()
The list is returned in a shallow copy.
getParameters
in interface IParameterizable
getParameters
in class LinearCombinationFunction
Copyright © 2023 CNES. All rights reserved.