public class ConstantFunc extends Object implements NumFunctionArgs
| Constructor and Description |
|---|
ConstantFunc() |
ConstantFunc(double c) |
public void setParams(double[] p)
NumFunctionArgssetParams in interface NumFunctionArgsp - parameters of the function.public double[] getParams()
NumFunctionArgsNumFunctionArgs.setParams(double[]).getParams in interface NumFunctionArgspublic double eval(double w)
NumFunctioneval in interface NumFunctionw - the variable of the function to evaluate.