I am working on creating my own function for peak fitting in the peak analyzer. All the functions I've viewed so far define the upper and lower limits of a peak on the x axis as when y=0 on the left and right of center, however in some of my data this isn't the case. Would it be possible to set the bounds of the peak so that they are determined by the slope over say 10-20 data points so that the limits of the peak are defined as where the slope of the line approaches zero on either side of center?
Also it should be mentioned that this would need to be run on several thousand peaks in a row so I'm hoping that this wouldn't add too much to the computational load. My current peak fitting function looks to be a Boltzmann function on the left side of the curve and a two-Phase exponential on the right (usually around 33 iterations per peak on each) any advice on how speed up the processing / decrease the computational load without loss of fitting quality would also be appreciated. Thanks!