public class LinearFunc extends Object implements NumFunctionArgs
Constructor and Description |
---|
LinearFunc() |
LinearFunc(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.