forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 7:31 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Need Smoothing Spline advice
PostPosted: Sat Oct 30, 2010 7:18 am 
Offline

Joined: Sat Oct 30, 2010 7:04 am
Posts: 2
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 7200 times ]
Top
 Profile  
 
 Post subject: Re: Need Smoothing Spline advice
PostPosted: Sat Oct 30, 2010 7:59 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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?


Top
 Profile  
 
 Post subject: Re: Need Smoothing Spline advice
PostPosted: Sat Oct 30, 2010 8:04 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
P.S. Forgot to tell that ALGLIB 3.1 will include examples for penalized regression splines =)


Top
 Profile  
 
 Post subject: Re: Need Smoothing Spline advice
PostPosted: Sat Oct 30, 2010 12:50 pm 
Offline

Joined: Sat Oct 30, 2010 7:04 am
Posts: 2
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.


Top
 Profile  
 
 Post subject: Re: Need Smoothing Spline advice
PostPosted: Sat Oct 30, 2010 2:11 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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 :)


Top
 Profile  
 
 Post subject: What is the difference between smoothing Spline and moving a
PostPosted: Thu Oct 27, 2011 5:24 pm 
Offline

Joined: Fri Oct 21, 2011 12:59 pm
Posts: 3
What is the difference between smoothing Spline and moving averge and is alglib 3.4 has Moving average filter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group