zernike_radial

hcipy.mode_basis.zernike_radial(n, m, r, cache=None, recurrence_relationship='andersen')[source]

The radial component of a Zernike polynomial.

Parameters:
nint

The radial Zernike order.

mint

The azimuthal Zernike order.

rarray_like

The (normalized) radial coordinates on which to calculate the polynomial.

cachedict or None

A dictionary containing previously calculated Zernike modes on the same grid. This function is for speedup only, and therefore the cache is expected to be valid. You can reuse the cache for future calculations on the same exact grid. The given dictionary is updated with the current calculation.

recurrence_relationshipstr

Determine which recurrence relationship is used. Currently the options are andersen or chong. The default is andersen.

Returns:
array_like

The radial component of the evaluated Zernike polynomial.