public class ElementWiseDifferentiableVectorFunction extends ElementWiseVectorFunction implements DifferentiableVectorFunction
Constructor and Description |
---|
ElementWiseDifferentiableVectorFunction()
Creates a new
ElementWiseDifferentiableVectorFunction with a
linear scalar function as the default function (f(x_i) = x_i). |
ElementWiseDifferentiableVectorFunction(DifferentiableUnivariateScalarFunction scalarFunction)
Creates a new instance of ElementWiseDifferentiableVectorFunction
|
Modifier and Type | Method and Description |
---|---|
Matrix |
differentiate(Vector input)
Differentiate the VectorFunction at
input and return
the Jacobian |
DifferentiableUnivariateScalarFunction |
getScalarFunction()
Getter for scalarFunction
|
void |
setScalarFunction(UnivariateScalarFunction scalarFunction)
Setter for scalarFunction
|
clone, evaluate, evaluate
public ElementWiseDifferentiableVectorFunction()
ElementWiseDifferentiableVectorFunction
with a
linear scalar function as the default function (f(x_i) = x_i).public ElementWiseDifferentiableVectorFunction(DifferentiableUnivariateScalarFunction scalarFunction)
scalarFunction
- Differentiable scalar functionpublic Matrix differentiate(Vector input)
DifferentiableVectorFunction
input
and return
the Jacobiandifferentiate
in interface DifferentiableEvaluator<Vector,Vector,Matrix>
differentiate
in interface DifferentiableVectorFunction
input
- Vector input to the VectorFunction, about which to evaluate
the VectorFunctioninput
public DifferentiableUnivariateScalarFunction getScalarFunction()
ElementWiseVectorFunction
getScalarFunction
in class ElementWiseVectorFunction
public void setScalarFunction(UnivariateScalarFunction scalarFunction)
ElementWiseVectorFunction
setScalarFunction
in class ElementWiseVectorFunction
scalarFunction
- Underlying scalar function to apply to each Vector element