Rbf Surface.Gradient Method
Definition
Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
Overload List
| Gradient( | Computes the gradient of the surface at the specified point. |
| Gradient( | Computes the gradient of a 2D surface at the specified point. |
| Gradient( | Computes the gradient of the surface at the specified point. |
| Gradient( | 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.
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
The gradient of an RBF interpolant is computed as:
∇f(x) = Σᵢ wᵢ φ'(rᵢ) (x - pᵢ) / rᵢ
where rᵢ = ||x - pᵢ|| is the distance to the i-th center, φ'(r) is the derivative of the radial basis function kernel, and wᵢ are the interpolation weights.
For conditionally positive definite (CPD) kernels with polynomial augmentation, the gradient also includes contributions from the polynomial tail.
Exceptions
| Argument | The length of point does not equal Dimension. -or- The length of result does not equal Dimension. |