NearestScatterSurface.Gradient Method

Definition

Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0

Overload List

Gradient(Vector<Double>) Computes the gradient of the surface at the specified point.
Gradient(Double, Double) Computes the gradient of a 2D surface at the specified point.
Gradient(ReadOnlySpan<Double>, Span<Double>) Computes the gradient of the surface at the specified point.
Gradient(Vector<Double>, Vector<Double>) Computes the gradient of the surface at the specified point.

Gradient(ReadOnlySpan<Double>, Span<Double>)

Computes the gradient of the surface at the specified point.
C#
public override void Gradient(
	ReadOnlySpan<double> point,
	Span<double> result
)

Parameters

point  ReadOnlySpan<Double>
A read-only span representing the coordinates of the point.
result  Span<Double>
A span to receive the gradient vector.

Remarks

Since nearest-neighbor interpolation produces a piecewise constant function, the gradient is zero almost everywhere (except at measure-zero boundaries between regions).

This implementation returns a zero vector for all points.

Exceptions

ArgumentException

The length of point does not equal Dimension.

-or-

The length of result does not equal Dimension.

See Also