Special.Zernike ZPartial Sequence Method
Evaluates a sequence of Zernike polynomials of increasing radial degree
of the specified length
and returns the result in the specified vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The vector result, which contains the values of the first length Zernike polynomials ordered according to scheme evaluated at x and angle.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Vector<double> ZernikeZPartialSequence(
Func<int, int, int> scheme,
int length,
bool normalize,
double x,
double angle,
Vector<double>? result = null
)
Parameters
- scheme Func<Int32, Int32, Int32>
- A delegate that maps radial degree and azimuthal frequency to a linear index.
- length Int32
- The number of terms 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> (Optional)
- Optional. The vector that is to hold the result. May be null.
Return Value
Vector<Double>The vector result, which contains the values of the first length Zernike polynomials ordered according to scheme evaluated at x and angle.
Exceptions
Argument | length is less than zero. |
Argument | scheme is null. |