@CodeReview(reviewer="Kevin R. Dixon", date="2008-02-26", changesNeeded=false, comments="Looks good.") public interface UnivariateScalarFunction extends Evaluator<java.lang.Double,java.lang.Double>, ScalarFunction<java.lang.Double>
UnivariateScalarFunction
implement
CloneableSerializable
, though it is not required.Modifier and Type | Method and Description |
---|---|
double |
evaluate(double input)
Produces a double output for the given double input
|
default java.lang.Double |
evaluate(java.lang.Double input)
Evaluates the function on the given input and returns the output.
|
default double |
evaluateAsDouble(java.lang.Double input)
Evaluates the scalar function as a double.
|
double evaluate(double input)
input
- Input to the Evaluatordefault java.lang.Double evaluate(java.lang.Double input)
Evaluator
evaluate
in interface Evaluator<java.lang.Double,java.lang.Double>
evaluate
in interface ScalarFunction<java.lang.Double>
input
- The input to evaluate.default double evaluateAsDouble(java.lang.Double input)
ScalarFunction
evaluateAsDouble
in interface ScalarFunction<java.lang.Double>
input
- The input value.