forum.alglib.net
http://forum.alglib.net/

Need Smoothing Spline advice
http://forum.alglib.net/viewtopic.php?f=2&t=107
Page 1 of 1

Author:  misterbear818 [ Sat Oct 30, 2010 7:18 am ]
Post subject:  Need Smoothing Spline advice

I am new to alglib and non-linear smoothing methods. looking at the attached graphic, i want to reduce the jaggies on these channel boundary pairs to a smooth appearance while preserving the over all shape of the top and bottom of each of the 3 channel pairs shown. I would be willing to hire someone to create a c++ example. thanks... thinkpad@edgemax.com

Attachments:
File comment: 3 pairs of channels needing smoothing
ragged channels.png
ragged channels.png [ 18.02 KiB | Viewed 7201 times ]

Author:  Sergey.Bochkanov [ Sat Oct 30, 2010 7:59 am ]
Post subject:  Re: Need Smoothing Spline advice

I recommend you to wait for ALGLIB 3.1, which will be released somewhere between October, 31, and November, 1. It supports penalized regression splines, which are perfectly suited for problems like you want to solve. They allow to adaptively (and continuously) control degree of smoothing applied to data: from noisy graphs above to smooth shape-preserving fit to straight line fit. Unpenalized regression splines (which ALGLIB supports now) are inferior to the penalized ones.

BTW, how large are the samples you want to process?

Author:  Sergey.Bochkanov [ Sat Oct 30, 2010 8:04 am ]
Post subject:  Re: Need Smoothing Spline advice

P.S. Forgot to tell that ALGLIB 3.1 will include examples for penalized regression splines =)

Author:  misterbear818 [ Sat Oct 30, 2010 12:50 pm ]
Post subject:  Re: Need Smoothing Spline advice

Thanks, this sounds very promising! One question regards Penalized Regression Splines. Are PRS computationally expensive? Ideally, I would like to update the smoothing spline output as data comes in from the sensors. Perhaps using a sliding window perhaps 50 samples wide. The data rate is sporadic and not constant, sometimes several times per second.

Author:  Sergey.Bochkanov [ Sat Oct 30, 2010 2:11 pm ]
Post subject:  Re: Need Smoothing Spline advice

They have O(N*M^2 + M^3) complexity, where N is a number of points (50 in your case), M is a number of basis functions (recommended value for your problem is 100-200 - several times more than number of points). Generally, it takes approximately same time as to solve MxM system of linear equations, which should be acceptable if you use 2GHz CPU or higher. In case it is something embedded (=slow), you can decrease number of basis functions - or wait for ALGLIB 3.2, which will contain faster algorithm for spline fitting with O(N*M+M*M) complexity :)

Author:  skyeyes99_ae [ Thu Oct 27, 2011 5:24 pm ]
Post subject:  What is the difference between smoothing Spline and moving a

What is the difference between smoothing Spline and moving averge and is alglib 3.4 has Moving average filter

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/