| The parameters p(1) to p(6) are, in numerical order, (1) the amplitude of the function, (2) x location, (3)sigma x, (4) y location, (5) sigma y, and (6) an offset applied to eliminate background noise. The function takes user inputs as an initial guess, then loops the search process to find more accurate values for the parameters. Arbitrary values are chosen for p(1), p(3), p(5) and p(6) to begin, and are then readjusted based on the first output parameters. Typically, the closer these fit parameters are to the true parameters, the better the function is at defining p(2) an p(4). | | The parameters p(1) to p(6) are, in numerical order, (1) the amplitude of the function, (2) x location, (3)sigma x, (4) y location, (5) sigma y, and (6) an offset applied to eliminate background noise. The function takes user inputs as an initial guess, then loops the search process to find more accurate values for the parameters. Arbitrary values are chosen for p(1), p(3), p(5) and p(6) to begin, and are then readjusted based on the first output parameters. Typically, the closer these fit parameters are to the true parameters, the better the function is at defining p(2) an p(4). |