public class GradientFunction extends Object implements RealVectorFunction
Function.EvaluationException| Constructor and Description |
|---|
GradientFunction(RealScalarFunction f)
Construct the gradient function of a real scalar function f.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimensionOfDomain()
Get the number of variables the function has.
|
int |
dimensionOfRange()
Get the dimension of the range space of the function.
|
Vector |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
public GradientFunction(RealScalarFunction f)
f - a real scalar functionpublic Vector evaluate(Vector x)
Functionpublic int dimensionOfDomain()
FunctiondimensionOfDomain in interface Function<Vector,Vector>public int dimensionOfRange()
FunctiondimensionOfRange in interface Function<Vector,Vector>Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.