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
 Origin Forum
 Boundary condition with Savitzky-Golay filter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sqapple

1 Posts

Posted - 03/29/2011 :  11:35:14 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Sam Fang

291 Posts

Posted - 03/30/2011 :  02:36:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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