Class Gradient
- java.lang.Object
-
- dev.nm.algebra.linear.vector.doubles.dense.DenseVector
-
- dev.nm.analysis.differentiation.multivariate.Gradient
-
- All Implemented Interfaces:
Vector
,AbelianGroup<Vector>
,BanachSpace<Vector,Real>
,HilbertSpace<Vector,Real>
,VectorSpace<Vector,Real>
,DeepCopyable
public class Gradient extends DenseVector
The gradient of a scalar field is a vector field which points in the direction of the greatest rate of increase of the scalar field, and of which the magnitude is the greatest rate of change. Mathematically, the gradient of a scalar function is a vector of size n, where n is the domain dimension of f. \[ \nabla{f} = {\partial f \over \partial x_1}, \dots, {\partial f \over \partial x_n} \] The gradient vector is computed numerically using the finite difference method, e.g.,MultivariateFiniteDifference
.- See Also:
- Wikipedia: Gradient
-
-
Constructor Summary
Constructors Constructor Description Gradient(RealScalarFunction f, Vector x)
Construct the gradient vector for a multivariate function f at point x.
-
Method Summary
-
Methods inherited from class dev.nm.algebra.linear.vector.doubles.dense.DenseVector
add, add, add, angle, deepCopy, divide, divide, equals, get, hashCode, innerProduct, innerProduct, minus, minus, minus, multiply, multiply, norm, norm, opposite, pow, scaled, scaled, set, set, size, toArray, toString, ZERO
-
-
-
-
Constructor Detail
-
Gradient
public Gradient(RealScalarFunction f, Vector x)
Construct the gradient vector for a multivariate function f at point x.- Parameters:
f
- a multivariate functionx
- the point to evaluate the gradient of f at
-
-