Special.ZernikeZPartialSequence(Func<Int32, Int32, Int32>, Int32, Boolean, Double, Double, Vector<Double>) Method

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

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<double> ZernikeZPartialSequence(
	Func<int, int, int> scheme,
	int length,
	bool normalize,
	double x,
	double angle,
	Vector<double> result
)

Parameters

scheme  Func<Int32, Int32, Int32>
A delegate that maps radial degree and azimuthal frequency to a linear index.
length  Int32
The number of terms to include in the sequence.
normalize  Boolean
Specifies whether the Zernike polynomial should be normalized.
x  Double
A real number that specifies the radial argument.
angle  Double
A real number that specifies the angular argument.
result  Vector<Double>
The vector that is to hold the result. May be null.

Return Value

Vector<Double>
The vector result, which contains the values of the first length Zernike polynomials ordered according to scheme evaluated at x and angle.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

ArgumentNullException

scheme is null.

See Also