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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Diff/Smooth in Origin C

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ruudvanleeuwen 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
1   L A T E S T    R E P L I E S    (Newest First)
ruudvanleeuwen 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000