Special.ZernikeZSequence Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ZernikeZSequence(Func<Int32, Int32, Int32>, Int32, Boolean, Double, Double) Evaluates a sequence of Zernike polynomials of increasing radial degree and azimuthal frequency.
ZernikeZSequence(Func<Int32, Int32, Int32>, Int32, Boolean, Double, Double, Vector<Double>) Evaluates a sequence of Zernike polynomials and returns the result in the specified vector.

ZernikeZSequence(Func<Int32, Int32, Int32>, Int32, Boolean, Double, Double)

Evaluates a sequence of Zernike polynomials of increasing radial degree and azimuthal frequency.
C#
public static Vector<double> ZernikeZSequence(
	Func<int, int, int> scheme,
	int maxRadialDegree,
	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.
maxRadialDegree  Int32
The highest radial degree 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.

Return Value

Vector<Double>
A vector that contains the values of the radial Zernike polynomials ordered according to scheme up to radial degree maxRadialDegree at x .

Exceptions

ArgumentOutOfRangeException

maxRadialDegree is less than zero.

ArgumentNullException

scheme is null.

ZernikeZSequence(Func<Int32, Int32, Int32>, Int32, Boolean, Double, Double, Vector<Double>)

Evaluates a sequence of Zernike polynomials and returns the result in the specified vector.
C#
public static Vector<double> ZernikeZSequence(
	Func<int, int, int> scheme,
	int maxRadialDegree,
	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.
maxRadialDegree  Int32
The highest radial degree 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 Zernike polynomials up to degree maxRadialDegree ordered according to scheme evaluated at x and angle.

Exceptions

ArgumentOutOfRangeException

maxRadialDegree is less than zero.

ArgumentNullException

scheme is null.

See Also