04-17-2013 12:11 PM
I try to use analysis.math.curvefit.polynomialfit to fit my dataset.
If there is only one peak in the dataset. It works well as figure "single.jpg". (Red line is the results of after fitting)
ps. I use the data points is about half width of my peak and use QR as fit algorithm.
But, if I try use the same fitting parameters to the dataset which contained multiple peaks, the results shown in figure "multi.jpg".
As the results, fitting is not well.
However, if I use analysis.monitoring.peakdetector function, I do get reasonable results in peak position and peak height.
According to your description in the help on msdn. Peakdetector is used "quardratic polynomial to sequential groups of data points".
Does it possible to get processed dataset from "PeakDetector"? or Is there any alternative build-in function to meet this request?
Thanks a lot.
04-17-2013 02:53 PM
Hi,
Have you looked at the peak detector example project that installs with measurement studio?
......\DotNET\Examples\Analysis\PeakDetector
I had some similar data a while back and was successful at modifying that code to fit my needs.
You'll have to play around with the peak threshold values and the peak width values to adapt it to your data.
good luck
Curt
04-18-2013 11:08 AM
Hello Curt,
Thanks for your reply. I know the function of "PeakDetect" and it works well in my plot. I mentioned it in my first post.
I hope to get the peak area and baseline of the peak. There are some ways could do.
But, seems "PeakDetect" could get peak height for all peaks, it must fit and get baseline information during the process.
If it is true, I hope there is some build-in function in Measurement Studio could provide all information from "PeakDetect".
Then, I don't need to write the code to handle that.
Tanks a lot,
Steven