Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi
I have this set of UV data . I want to first fit a beseline to this set of data and then calculate the integral with regard to that baseline .
i don't know if mathcad can do it , and if it can ,How?!?!?!
Solved! Go to Solution.
See attached for a more bold way for finding the base. Works well for the data you provided but should be tested for other data sets. Guess it would fail for some of them. I simply exclude all data points with a signal greater than the arithmetic mean of all data and then do a linear or exponential fit.
What exactly are you after? How would you define "baseline" in that context?
Would the attached be of any help?
Thank you werner,It was totally helpful
samples of base line ( simple) is attached to this .
I think I see what is meant. Problem is how to distinguisg between the baseline signal and the actual signal.
Mathcad won't be able to do it out of the box so it would require some programming work in Mathcad. This again would require to agree upon an algorithm.
Just a rough idea, not sure if this would meet the point:
1) Decide upon the interval the signal should be taken
2) Smooth the signal (e.g. medsmooth) as from your pics it seems that the signals can be rather noisy
3) Cycle through the signal from both ends until the signal change is greater than ???... and take only the few endpoints left on both ends to do a linear or exponential fit (linfit, expfit) to get the baseline.
Sure 3) would require some refinements 😉
Morteza Adinehnia wrote:
Hi
I have this set of UV data . I want to first fit a beseline to this set of data
See please one animation http://communities.ptc.com/videos/3543
See attached for a more bold way for finding the base. Works well for the data you provided but should be tested for other data sets. Guess it would fail for some of them. I simply exclude all data points with a signal greater than the arithmetic mean of all data and then do a linear or exponential fit.
Hi, I have MathCAD 5.0 Prime, could someone convert this for me? I have the same requirements
Here you are.
Haven't checked the Prime file so to be on the safe side I add a pdf-print of the Mathcad file so you see how it should look like.