Class HessianFunction
- java.lang.Object
-
- dev.nm.analysis.differentiation.multivariate.HessianFunction
-
- All Implemented Interfaces:
Function<Vector,Matrix>,RntoMatrix
public class HessianFunction extends Object implements RntoMatrix
The Hessian function, H(x), evaluates the Hessian of a real scalar function f at a point x. H(x) has the same domain as f(x).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
-
Constructor Summary
Constructors Constructor Description HessianFunction(RealScalarFunction f)Construct the Hessian function of a real scalar function f.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdimensionOfDomain()Get the number of variables the function has.intdimensionOfRange()Get the dimension of the range space of the function.Matrixevaluate(Vector x)Evaluate the function f at x, where x is from the domain.
-
-
-
Constructor Detail
-
HessianFunction
public HessianFunction(RealScalarFunction f)
Construct the Hessian function of a real scalar function f.- Parameters:
f- a real scalar function
-
-
Method Detail
-
evaluate
public Matrix evaluate(Vector x)
Description copied from interface:FunctionEvaluate the function f at x, where x is from the domain.
-
dimensionOfDomain
public int dimensionOfDomain()
Description copied from interface:FunctionGet the number of variables the function has. For example, for a univariate function, the domain dimension is 1; for a bivariate function, the domain dimension is 2.- Specified by:
dimensionOfDomainin interfaceFunction<Vector,Matrix>- Returns:
- the number of variables
-
dimensionOfRange
public int dimensionOfRange()
Description copied from interface:FunctionGet the dimension of the range space of the function. For example, for a Rn->Rm function, the dimension of the range is m.- Specified by:
dimensionOfRangein interfaceFunction<Vector,Matrix>- Returns:
- the dimension of the range
-
-