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
 LabTalk Forum
 Savitzki-Golay Smoothing

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
tinkusch Posted - 08/02/2004 : 06:06:38 AM
Hi,
there is a peculiar problem with the labtalk comand
curve.SGSmooth()
in Origin Pro 7.0 (B522 SR4, with German WIN98)

my script looks like this:
curve.data$=SOURCE_C;
curve.x$=SOURCE_X;
curve.result$=RESULTS_B;
curve.polydeg=3;
curve.smoothleftpts = 25;
curve.smoothrightpts = 25;
curve.SGSmooth();

I now expected the execution of smoothing over 51 points of Source_c, but instead, Origin sets curve.smoothleftpts and curve.smoothrightpts back to the default value of 2 prior to execution of the smoothing, and then performs the smoothing over 5 points only!

The only way to execute smoothing with preselected value for the smoothranges seems to be the selection via the Origin-Analysis-Smoothing menue. Once these values are set "by hand" they remain unchanged after repeated smoothing. But, of course that is no solution, because I would like to do the selection automatically via the labtalk script.

Any explanation or hint?

Thanks

Stefan


2   L A T E S T    R E P L I E S    (Newest First)
tinkusch Posted - 08/02/2004 : 11:28:01 AM
Hi Mike, thanks!

anyway, it seems a bit strange to me that one has to set the left and right hand no of points as well as the total no of points.....

Mike Buess Posted - 08/02/2004 : 10:55:24 AM
Hi Stephan,

Alter your script like this...

curve.data$=SOURCE_C;
curve.x$=SOURCE_X;
curve.result$=RESULTS_B;
curve.polydeg=3;
curve.smoothleftpts = 25;
curve.smoothrightpts = 25;
curve.smoothpts = 51; // total smoothing pts
curve.SGSmooth();

The default value of curve.smoothpts is 5 so leftpts and rightpts are reset if you forget to change it.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 08/02/2004 11:09:17 AM

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