| Constructor and Description |
|---|
LinearFunction() |
LinearFunction(double a,
double b) |
| Modifier and Type | Method and Description |
|---|---|
double |
getA() |
double |
getB() |
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 |
setB(double b) |
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 LinearFunction()
public LinearFunction(double a,
double b)
public double getA()
public void setA(double a)
public double getB()
public void setB(double b)
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