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

Evaluates an expansion of Zernike polynomials.

Definition

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

Parameters

scheme  Func<Int32, Int32, Int32>
A delegate that maps radial degree and azimuthal frequency to a linear index.
coefficients  Vector<Double>
A vector containing the coefficients of the expansion in the order specified by scheme.
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.

Return Value

Double
The sum of the Zernike polynomials at x multiplied by the corresponding element of coefficients.

Exceptions

ArgumentNullException

scheme is null.

-or-

coefficients is null.

See Also