|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.analysis.differentiation.multivariate.HessianFunction
public class HessianFunction
Compute the Hessian function, H(x), for a real scalar function f(x).
The Hessian function evaluates the Hessian matrix at a point using a numerical method, e.g., finite difference.
H(x) has the same domain as f(x).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function |
|---|
Function.EvaluationException |
| Field Summary | |
|---|---|
RealScalarFunction |
f
the real scalar function to compute the Hessian for |
| Constructor Summary | |
|---|---|
HessianFunction(RealScalarFunction f)
Construct a HessianFunction to compute the Hessian matrix numerically. |
|
| Method Summary | |
|---|---|
int |
dimension4Domain()
Get the number of variables of the function. |
int |
dimension4Range()
Get the dimension of the range space the function. |
Matrix |
evaluate(double... x)
Compute H(x). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final RealScalarFunction f
| Constructor Detail |
|---|
public HessianFunction(RealScalarFunction f)
f - a real scalar function| Method Detail |
|---|
public Matrix evaluate(double... x)
H(x).
A RntoMatrix function, f, takes a double array double[],
and maps it to a Matrix,{x0,x1, ...,xn}
M = f(x0, x1, ..., xn)
evaluate in interface RntoMatrixx - a point x
H(x)public int dimension4Domain()
FunctionFor example, for a univariate function, the domain dimension is 1. For a bivariate function, the domain dimension is 2.
dimension4Domain in interface Functionpublic int dimension4Range()
Function
For example, for a Rn->Rm function, the dimension of the range is m.
dimension4Range in interface Function
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||