Special.ZernikeRSequence Method

Evaluates a sequence of Zernike polynomials of increasing degree starting at the specified degree and returns the result in the specified vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static Vector<double> ZernikeRSequence(
	Func<int, int, int> scheme,
	int maxRadialDegree,
	double x,
	Vector<double>? result = null
)

Parameters

scheme  Func<Int32, Int32, Int32>
A delegate that maps radial degree and azimuthal frequency to a linear index.
maxRadialDegree  Int32
The highest radial degree to include in the sequence.
x  Double
A real number.
result  Vector<Double>  (Optional)
Optional. The vector that is to hold the result. May be null.

Return Value

Vector<Double>
The vector result, which contains the values of the radial Zernike polynomials with radial degree up to maxRadialDegree in the order specified by scheme evaluated at x.

Exceptions

ArgumentNullException

scheme is null.

ArgumentOutOfRangeException

maxRadialDegree is less than zero.

See Also