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
 Boundary condition with Savitzky-Golay filter

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
sqapple Posted - 03/29/2011 : 11:35:14 PM
Hi,

The Smoothing dialog provides a drop-down list for defining the boundary condition, to pad the input data so that it have enough data points to calculate the output for the data points near the ends of the data. I learned the Savitzky-Golay algorithm and complete manual computation. To my surprise, the results are the same with the Origin results except for the data points near the ends of the data. When I pad zeros with the ends of data I could not get the same results with the Origin boundary condition "None". May I misunderstood the boundary condition of Origin? I need someone could tell me why.

Here is my example:
I pick the polynomial order 3, and the window size 2*m+1=7 (m=3), so the data after the fourth points are Ok. The data points are:
0.007589
0.007566
0.007596
0.007654
0.00774
0.007883
0.007915


My results of the first fourth data points:
0.0050476
0.0072169
0.0083197
0.0076635

the results from Origin:
0.00759383
0.00755821
0.00758893
0.00766348

Thanks a lot!

Shenqian
1   L A T E S T    R E P L I E S    (Newest First)
Sam Fang Posted - 03/30/2011 : 02:36:35 AM
Origin's S-G smoothing for Boundary Condition "None" doesn't pad zeros at the end of data. It uses Polynomial Fit to calculate smoothed points at the boundary.

Sam
OriginLab Technical Services

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