forum.alglib.net

ALGLIB forum
It is currently Mon Dec 23, 2024 1:48 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: curve fitting
PostPosted: Thu Oct 11, 2012 8:30 pm 
Offline

Joined: Mon Apr 16, 2012 12:24 pm
Posts: 5
Does anyone have any examples of curve fitting I can study?

The sort of problem I have is a measured curve consisting of a weighted sum of portions of other curves A, B. C,.....

I want to fit curves A, B, C,.... to the measured curve... to determine the proportions of A, B, C, ... nneded to model it.

I am completely stuck as how to formulate this, should I be using the lsfit routines? if so can sopmeone give a pointer as how to set up a problem of this type

many thanks in anticipation of some pointers,


Top
 Profile  
 
 Post subject: Re: curve fitting
PostPosted: Fri Oct 12, 2012 5:44 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You should use linear least squares - this algorithm represents data as linear combination of arbitrary functions (even nonlinear) assuming that you know function values in points of dataset.

lsfitlinear function, I think, should work for you.


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: No registered users and 24 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