public class SolverFunction extends AbstractUnivariateScalarFunction
| Constructor and Description |
|---|
SolverFunction()
Creates a new instance of SolverFunction
|
SolverFunction(double target,
Evaluator<java.lang.Double,java.lang.Double> internalFunction)
Creates a new instance of SolverFunction
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double input)
Produces a double output for the given double input
|
Evaluator<java.lang.Double,java.lang.Double> |
getInternalFunction()
Getter for internalFunction
|
double |
getTarget()
Getter for target
|
void |
setInternalFunction(Evaluator<java.lang.Double,java.lang.Double> internalFunction)
Setter for internalFunction.
|
void |
setTarget(double target)
Setter for target
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluate, evaluateAsDoublepublic SolverFunction()
public SolverFunction(double target,
Evaluator<java.lang.Double,java.lang.Double> internalFunction)
target - internalFunction value to search for.internalFunction - The internal function to use.public double getTarget()
public void setTarget(double target)
target - internalFunction value to search for.public Evaluator<java.lang.Double,java.lang.Double> getInternalFunction()
public void setInternalFunction(Evaluator<java.lang.Double,java.lang.Double> internalFunction)
internalFunction - The internal function to use.public double evaluate(double input)
UnivariateScalarFunctioninput - Input to the Evaluator