desc.profiles.FourierZernikeProfile.from_values
- classmethod FourierZernikeProfile.from_values(r, t, z, f, L=6, M=0, N=0, NFP=1, w=None, name='')Source
Fit a FourierZernikeProfile from point data.
- Parameters:
r (array-like, shape(k,)) – coordinate locations in rho, theta, zeta
t (array-like, shape(k,)) – coordinate locations in rho, theta, zeta
z (array-like, shape(k,)) – coordinate locations in rho, theta, zeta
f (array-like, shape(k,)) – function values
L (int) – maximum mode numbers to fit
M (int) – maximum mode numbers to fit
N (int) – maximum mode numbers to fit
NFP (int) – number of field periods
w (array-like, shape(k,)) – Weights to apply to the y-coordinates of the sample points. For gaussian uncertainties, use 1/sigma (not 1/sigma**2).
name (str) – name of the profile
- Returns:
profile (PowerSeriesProfile) – profile in power series basis fit to given data.