forum.alglib.net

ALGLIB forum
It is currently Fri Mar 29, 2024 11:09 am

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  [ 4 posts ] 
Author Message
 Post subject: Another one applied spline problem
PostPosted: Wed Oct 06, 2010 7:27 am 
Offline

Joined: Wed Oct 06, 2010 7:02 am
Posts: 7
I have a very applied problem.
There is a real world line (made of one kind of metal) and a lot of 2D points, taken from the line with some errors with non-regular step.
I need to represent the line with some spline.
The spline must reflect the next real line property: it should not have "curved areas" shorter then some value (point steps can be mach shorter then this value)
"Curved areas" means areas with same curvature direction (cw, ccw).

I can use a weighted 2D spline but have no any ideas how to estimate the weights.

As I can see point should have smaller weight in two cases:
a. it lies within series with short steps between points;
b. it's location measures with large error.
In both cases such point (if not to reduce it's weight) will result in short spline bend.

Could you advise me something?
Thank you.

PS Sorry for poor English.


Top
 Profile  
 
 Post subject: Re: Another one applied spline problem
PostPosted: Wed Oct 06, 2010 5:53 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 903
Quote:
it should not have "curved areas" shorter then some value

Do you really need to enforce such requirement, or you just try to prevent spline from being "too flexible"? There are much more convenient ways of regularizing spline....


Top
 Profile  
 
 Post subject: Re: Another one applied spline problem
PostPosted: Wed Oct 06, 2010 11:31 pm 
Offline

Joined: Wed Oct 06, 2010 7:02 am
Posts: 7
Quote:
Do you really need to enforce such requirement, or you just try to prevent spline from being "too flexible"? There are much more convenient ways of regularizing spline....


Sergey,
If there is relativly simple way "to prevent spline from being "too flexible" I hope it will help me
(it will result in smth like what I want from my data, The next step of my "algorithm strategy" is to locate "curved areas" and I want them not to be too small and "frequent").

Thank you for interest.


Top
 Profile  
 
 Post subject: Re: Another one applied spline problem
PostPosted: Thu Oct 07, 2010 5:49 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 903
I recommend to use spline1dfitcubicwc() function. You can constrain flexibility of a spline by specifying small number of degrees of freedom. Alternatively, you can use penalized regression splines. However, ALGLIB doesn't include penalized regression splines yet, so you have to implement them yourself.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 76 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