# forum.alglib.net

ALGLIB forum
 It is currently Mon Oct 02, 2023 1:37 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.

 Page 1 of 1 [ 1 post ]
 Print view Previous topic | Next topic
Author Message
 Post subject: curve fitting 3rd time luckyPosted: Tue May 08, 2012 9:23 pm

Joined: Mon Apr 16, 2012 12:24 pm
Posts: 5
Please could someone hlep me with my last post on curve fitting? I just need some guidance or an example of how to formulate a curve fitting problem like this - I'm not even certain if the lsfit routines are the ones I should be trying to figure out how to use for the type of problem I have.

in the simplest terms I can think of I have a measured curve of points x,y

eg the 3 points (1,1), (2,7), (3,4)

I want to fit this curve as a weighted sum of other (constant) curves.

For example with the two curves below

x y x y
1 0 1 1
2 3.5 2 0
3 1 3 2

the y values of the measured curve could be fit exactly by multiplying the set of y values for the first constant curve by 2 and adding 1 times the second set of y values.

My question then is how to formulate this in lsfitcreate? (if that is how it should be done?)

apologies if this is a really basic question but I'm not a mathamatician or a programmer - but I am eager to learn

thanks in anticipation

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 1 post ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 2 guests

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

Search for: