public class Constant extends FunctionBase
Modifier and Type | Method and Description |
---|---|
Constant |
clone() |
double |
eval(VectorNd x)
Evaluates the function at the given input value
|
void |
evalDeriv(VectorNd df,
VectorNd cvals)
Evaluates the function derivative at the given input value
|
ConstantFunction1x1 |
getFunction() |
double |
getValue() |
void |
setValue(double val) |
public double getValue()
public void setValue(double val)
public double eval(VectorNd x)
FunctionBase
eval
in class FunctionBase
public void evalDeriv(VectorNd df, VectorNd cvals)
FunctionBase
evalDeriv
in class FunctionBase
public ConstantFunction1x1 getFunction()
getFunction
in class FunctionBase
public Constant clone()
clone
in interface Clonable
clone
in class FunctionBase