public interface Diff1Function1x1 extends Function1x1, Diff1FunctionNx1
Modifier and Type | Method and Description |
---|---|
double |
eval(DoubleHolder dval,
double x)
Evaluates both the value and first derivative of this function at a
specified input value.
|
default double |
eval(VectorNd deriv,
VectorNd in)
Evaluates this function for the specified inputs.
|
default double |
evalDeriv(double x)
Evaluates first derivative of this function at a
specified input value.
|
default void |
evalDeriv(VectorNd deriv,
VectorNd in)
Evaluates the derivative of this function for the specified inputs.
|
eval, eval, inputSize
double eval(DoubleHolder dval, double x)
dval
- if non-null, returns the derivative valuex
- input valuedefault double evalDeriv(double x)
x
- input valuedefault double eval(VectorNd deriv, VectorNd in)
Diff1FunctionNx1
deriv
is not
null
, the derivative is also computed and returned in this
argument. The input vector size should equal the value returned by FunctionNx1.inputSize()
. If present, deriv
will be resized, if necessary, to
FunctionNx1.inputSize()
.eval
in interface Diff1FunctionNx1
deriv
- if not null
, returns the derivative valuesin
- function input valuesdefault void evalDeriv(VectorNd deriv, VectorNd in)
Diff1FunctionNx1
FunctionNx1.inputSize()
. The derivative vector will be resized, if necessary, to
FunctionNx1.inputSize()
.evalDeriv
in interface Diff1FunctionNx1
deriv
- returns the derivative valuesin
- function input values