comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: simultaneous fitting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: simultaneous fitting [message #56780 is a reply to message #56702] Mon, 12 November 2007 08:19 Go to previous message
virgil1612 is currently offline  virgil1612
Messages: 3
Registered: November 2007
Junior Member
To hradilv:
> You're going to have to reform the problem somehow, probably. Maybe
> you can give some more details?

So it's the same independent variable, values of x between 0 and 1
(phases of a binary star system, representing one complete orbit). I
have two columns of datapoints representing two separate variables,
that I need to simultaneously fit with two functions that are defined
with one common set of parameters. The fitting would give those
parameters.


to craig:
> Fitting programs like LMFIT or MPFIT don't really care how many
> functions you have. If you have two data sets Y1 and Y2, then you can
> "glue" them together with a command like this,
> Y = [Y1, Y2]
> and in your model function, you would do the same thing, something
> like,
> F = [F1(X,P), F2(X,P)]
> where F1() and F2() are your different functions, which are functions
> of the same independent variable and the parameter set P.

Thanks Craig, I'll try to do that.

Cheers, Virgil.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: icontour scaling color table
Next Topic: iplot polar troubles

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:12:20 PDT 2025

Total time taken to generate the page: 1.12025 seconds