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
 Origin Forum
 Curve 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
ungat Posted - 05/23/2006 : 07:34:34 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System:Win XP MCE 2005

Hello everybody,

I would like smoothing curve using S-G method; I tried this:

//Open a new worksheet
win -t data Origin;
//Import sample file
open -w %YSamples\Data\Data with noise.dat;
//Create a column for results
wks.addcol(Result);
//Assign datasets
curve.data$ = DataWithNoise_Signal;
curve.result$ = DataWithNoise_Result;
curve.polyDeg=3;
curve.smoothLeftPts=3;
curve.smoothRightPts=3;
curve.SGSmooth();

But it doesn't work;

could someone help me please?

Thank you very much,

B.R.
5   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 05/23/2006 : 12:39:50 PM
quote:
Ok thank you, and for Polynomial Order? I want 3, is curve.polyDeg=3 good ?
Yes... according the programming guide its values can range from 1 to 9.

Mike Buess
Origin WebRing Member
ungat Posted - 05/23/2006 : 11:28:35 AM
quote:

curve.smoothLeftPts=3;
curve.smoothRightPts=3;
curve.smoothPts=7; // 3 on left + 3 on right + center pt

The curve object does not do the math on its own so you must set all three properties.

Mike Buess
Origin WebRing Member



Ok thank you, and for Polynomial Order? I want 3, is curve.polyDeg=3 good ?
Mike Buess Posted - 05/23/2006 : 10:34:08 AM
curve.smoothLeftPts=3;
curve.smoothRightPts=3;
curve.smoothPts=7; // 3 on left + 3 on right + center pt

The curve object does not do the math on its own so you must set all three properties.

Mike Buess
Origin WebRing Member
ungat Posted - 05/23/2006 : 09:21:01 AM
quote:

You must also use curve.smoothPts=7 or that property will default to 5 and curve.smoothLeft(Right)Pts will revert to 2.

Mike Buess
Origin WebRing Member



Thank you, but why curve.smoothPts=7 (why 7 ?) and why curve.smoothLeft(Right)Pts=2 ? I would like curve.smoothLeft(Right)Pts=3 or 5, is it possible ?
Mike Buess Posted - 05/23/2006 : 09:08:53 AM
You must also use curve.smoothPts=7 or that property will default to 5 and curve.smoothLeft(Right)Pts will revert to 2.

Mike Buess
Origin WebRing Member

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