The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Diff/Smooth in Origin C
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ruudvanleeuwen

Netherlands
Posts

Posted - 07/29/2005 :  04:05:15 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000