public class SingleCoefficientFunc extends Object implements NumFunctionArgs
Constructor and Description |
---|
SingleCoefficientFunc() |
SingleCoefficientFunc(double c) |
public SingleCoefficientFunc()
public SingleCoefficientFunc(double c)
public void setParams(double[] p)
NumFunctionArgs
setParams
in interface NumFunctionArgs
p
- parameters of the function.public double[] getParams()
NumFunctionArgs
NumFunctionArgs.setParams(double[])
.getParams
in interface NumFunctionArgs
public double eval(double w)
NumFunction
eval
in interface NumFunction
w
- the variable of the function to evaluate.