forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 9:12 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  [ 2 posts ] 
Author Message
 Post subject: Penalized cubic spline aproximation function value condition
PostPosted: Mon Feb 14, 2011 6:07 am 
Offline

Joined: Mon Feb 14, 2011 5:52 am
Posts: 1
Hello Sergey.

I use your library to aproximate probability distribution. I don't know the kind of distribution, thus prefered to use penalized cubic spline aproximation. I know, that the value of function is always greater than zero, but in case of luck of data or on the range boundaries the aproximated function sometimes become negative. How can i avoid this?

Thank you.


Top
 Profile  
 
 Post subject: Re: Penalized cubic spline aproximation function value condi
PostPosted: Mon Feb 14, 2011 9:34 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
It is hard to make regression spline strictly positive. I think, one possible solution is to fit logarithm of your function, not the function itself. I.e. instead of S(x) (which is value of regression spline) you will have to calculate exp(S(x)) in order to get values of your function.


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 52 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