Special.ZernikeRSequence Method

Definition

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

Overload List

ZernikeRSequence(Func<Int32, Int32, Int32>, Int32, Double) Evaluates a sequence of Zernike polynomials.
ZernikeRSequence(Func<Int32, Int32, Int32>, Int32, Double, Vector<Double>) Evaluates a sequence of Zernike polynomials of increasing degree starting at the specified degree and returns the result in the specified vector.

ZernikeRSequence(Func<Int32, Int32, Int32>, Int32, Double)

Evaluates a sequence of Zernike polynomials.
C#
public static Vector<double> ZernikeRSequence(
	Func<int, int, int> scheme,
	int maxRadialDegree,
	double x
)

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.

Return Value

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

Exceptions

ArgumentOutOfRangeException

maxRadialDegree is less than zero.

ArgumentNullException

scheme is null.

ZernikeRSequence(Func<Int32, Int32, Int32>, Int32, Double, Vector<Double>)

Evaluates a sequence of Zernike polynomials of increasing degree starting at the specified degree and returns the result in the specified vector.
C#
public static Vector<double> ZernikeRSequence(
	Func<int, int, int> scheme,
	int maxRadialDegree,
	double x,
	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.
x  Double
A real number.
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 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