@CodeReview(reviewer="Kevin R. Dixon", date="2008-02-12", changesNeeded=false, comments={"Added differentiate(double) method.","Created AbstractDifferentiableUnivariateScalarFunction as a partial implementation.","Otherwise, interface is fine."}) public interface DifferentiableUnivariateScalarFunction extends UnivariateScalarFunction, DifferentiableEvaluator<java.lang.Double,java.lang.Double,java.lang.Double>
Modifier and Type | Method and Description |
---|---|
double |
differentiate(double input)
Differentiates the output of the function about the given input
|
default java.lang.Double |
differentiate(java.lang.Double input)
Differentiates the output with respect to the input
|
evaluate, evaluate, evaluateAsDouble
double differentiate(double input)
input
- Input about which to compute the derivative of the function outputdefault java.lang.Double differentiate(java.lang.Double input)
DifferentiableEvaluator
differentiate
in interface DifferentiableEvaluator<java.lang.Double,java.lang.Double,java.lang.Double>
input
- Input about which to compute the derivative