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
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate, evaluateAsDouble
public 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)
UnivariateScalarFunction
input
- Input to the Evaluator