public interface Function
| Modifier and Type | Method and Description |
|---|---|
default String |
getFormattedParameter(int paramIndex)
Formats the value of an indexed parameter.
|
double |
getParameter(int paramIndex)
Returns the value of a parameter by index.
|
int |
getParameterCount()
How many parameters this function has?
|
default double[] |
getParameters()
Returns an array with the parameters.
|
void |
setParameter(int paramIndex,
double value)
Sets the value of a parameter by index.
|
default void |
setParameters(double... parameters)
Sets all the parameters.
|
double |
value(double x)
Value of the function at x.
|
double value(double x)
x - the input valueint getParameterCount()
double getParameter(int paramIndex)
paramIndex - index of the parametervoid setParameter(int paramIndex,
double value)
paramIndex - index of the parametervalue - new value of the parameterdefault double[] getParameters()
getParameter(int) and setParameter(int, double) methods.default void setParameters(double... parameters)
getParameter(int) and setParameter(int, double) methods.parameters - array of parametersdefault String getFormattedParameter(int paramIndex)
paramIndex - index of the parameterCreated by Kornél Simon, 2022