Author |
Topic  |
|
ruudvanleeuwen
Netherlands
Posts |
Posted - 07/29/2005 : 04:05:15 AM
|
Hello,
Is there any way to implement the Origin "Analysis --> Calculus --> Diff/Smooth..." function in Origin C? I did try the "Curve_derivative" function, but I don't like the "spline" way of smoothing data.
Also, ideally, I would like to be able to use higher numbers for "points to the left/right" than 25.
I hope somebody can help me with some hints or some example code. I think I could try and program it myself, but I'm rather new to programming in origin C and this would cost me days.
Regards,
Ruud
Origin Version (Select Help-->About Origin): OriginPro 7.5 SR2 Operating System: Win2000 |
|
ruudvanleeuwen
Netherlands
Posts |
Posted - 07/29/2005 : 09:21:28 AM
|
I think I just solved the problem myself, by first taking the derivative of the curve and consecutively smoothing as follows (crvV is the derivative of crvL; 50 points to the left/right are taken into account in the Savitzky-Golay (2) smoothing.):
Curve_derivative(&crvL,&crvV,1); smooth(crvV,2,50,50);
Thanks Ruud! You're welcome Ruud!
Regards,
Ruud
|
 |
|
|
Topic  |
|
|
|