params_complete¶
- pyoof.params_complete(params, N_K_coeff, config_params)[source]¶
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)\). The parameter selection is done by default or by adding a
config_params.ymlfile to thefit_zpolyfunction.- Parameters
- params
ndarray Contains 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_exclude = [0, 1, 2, 3, 4, 5, 6, 7]parameters.- N_K_coeff
int Total 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
dict Contains the values for the fixed parameters (excluded from the least squares minimization), for default parameters, see the
config_params.ymlfile.
- params
- Returns
- params_updated
ndarray Complete set of parameters to be used in the
residual_truefunction.
- params_updated