P1,P2,P3,P4,P5,P6 are parameters i want to calculate. In model this equation fitt well but i face problem that peaks are ignored during fitting (equation cannot fit peaks).
In general, if the fitting results are not as good as you expected, we will suggest you to check if the initial values of parameters are improper. You can estimate a group of initial values and then validate them by simulating curves with the fitting function(to make sure there are peaks with these initial values).