| Constructor and Description |
|---|
ConstantFunction() |
ConstantFunction(double a) |
| Modifier and Type | Method and Description |
|---|---|
double |
getA() |
double |
getParameter(int paramIndex)
Returns the value of a parameter by index.
|
int |
getParameterCount()
How many parameters this function has?
|
void |
setA(double a) |
void |
setParameter(int paramIndex,
double value)
Sets the value of a parameter by index.
|
String |
toString() |
double |
value(double x)
Value of the function at x.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormattedParameter, getParameters, setParameterspublic ConstantFunction()
public ConstantFunction(double a)
public double getA()
public void setA(double a)
public double value(double x)
Functionpublic int getParameterCount()
FunctiongetParameterCount in interface Functionpublic double getParameter(int paramIndex)
FunctiongetParameter in interface FunctionparamIndex - index of the parameterpublic void setParameter(int paramIndex,
double value)
FunctionsetParameter in interface FunctionparamIndex - index of the parametervalue - new value of the parameterCreated by Kornél Simon, 2022