Special.Zernike ZExpansion Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Zernike | Evaluates an expansion of Zernike polynomials. |
Zernike | Evaluates an expansion of Zernike polynomials up to the specified radial degree. |
ZernikeZExpansion(Func<Int32, Int32, Int32>, Vector<Double>, Boolean, Double, Double)
Evaluates an expansion of Zernike polynomials.
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. |
ZernikeZExpansion(Func<Int32, Int32, Int32>, Vector<Double>, Boolean, Double, Double, Int32)
Evaluates an expansion of Zernike polynomials up to the specified radial degree.
public static double ZernikeZExpansion(
Func<int, int, int> scheme,
Vector<double> coefficients,
bool normalize,
double x,
double angle,
int maxRadialDegree
)
Parameters
- scheme Func<Int32, Int32, Int32>
- A delegate that maps radial degree and azimuthal frequency to a linear index.
- coefficients Vector<Double>
- A matrix containing the coefficients in the lower triangular part.
- 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.
- maxRadialDegree Int32
- The highest radial degree of the polynomials to include in the series.
Return Value
DoubleThe sum of the Zernike polynomials with radial degree up to maxRadialDegree evaluated at x and angle and multiplied by the corresponding element of coefficients.
Remarks
If maxRadialDegree is less than zero, then zero is returned.
Exceptions
Argument | scheme is null. -or- coefficients is null. |