params_complete¶
-
pyoof.params_complete(params, idx, N_K_coeff, config_params)[source] [edit on github]¶ This function fills the missing parameters not used in the lease squares minimization, they are required to compute the correct aperture distribution, \(\underline{E_\mathrm{a}}(x, y)\). By default the following parameters are excluded
i_amp,x0,y0,K(0, 0). The parameter selection is done by default or by adding aconfig_params.ymlfile to thefit_beamfunction.Parameters: params :
ndarrayContains the incomplete array of parameters, the
paramsarray will be updated for the correct number of parameters to be used in theresidual_truefunction. The array should be of the shape,params = np.hstack([I_coeff, K_coeff]), missing or not some of theidx = [0, 1, 2, 3, 4]parameters.idx :
listList of the positions for the removed parameters for the least squares minimization in the
paramsarray.N_K_coeff :
intTotal number of Zernike circle polynomials coefficients to fit. It is obtained from the order to be fitted with the formula
N_K_coeff = (n + 1) * (n + 2) // 2..config_params :
dictContains the values for the fixed parameters (excluded from the least squares minimization), by default four parameters are kept fixed,
i_amp,x0,y0andK(0, 0). See theconfig_params.ymlfile.Returns: params_updated :
ndarrayComplete set of parameters to be used in the
residual_truefunction.