Special.Zernike ZExpansion(Func<Int 32, Int 32, Int 32>, 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#
The sum of the Zernike polynomials at x multiplied by the corresponding element of coefficients.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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
DoubleThe sum of the Zernike polynomials at x multiplied by the corresponding element of coefficients.
Exceptions
Argument | scheme is null. -or- coefficients is null. |