# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Re: simultaneous fitting with one shared parameter

I can try to do the similar algorithm of your vi, but I cannot see the block diagram of your program. Could you teach me how to do that?

Message 11 of 16
(380 Views)

## Re: simultaneous fitting with one shared parameter

Christian's example is excellent.  To help you get started I am attaching a simple example that may help.  The model is the sum of two exponential functions.  Each exponential has the form a*exp(b*x)+c, and the b parameter is shared across two data sets.  a and c are different for each of the two exponentials.

-Jim

Message 12 of 16
(372 Views)

## Re: simultaneous fitting with one shared parameter

I briefly looked at the example and it seems that this will be a great way to follow. I will work on and let you people know when I make more idea.

Thanks

-Doogie

Message 13 of 16
(369 Views)

## Re: simultaneous fitting with one shared parameter

DSPGuy,

I can understand your example except one thing. It seems to me that 2 other parameters are fixed, not really fitting parameters. Is it true? Or if they are fitting parameters, how can I get those returned values after fitting?

Message 14 of 16
(360 Views)
Solution
Accepted by topic author photoon

## Re: simultaneous fitting with one shared parameter

No, there are currently no other fitting paramters in Jim's example, partially because your original description is a bit confusing.

For example, you said "But, other three parameters are not supposed to be matched.", which could be understood that you don't want to fit for them at all. However, you meant that they should be different for each set (i.e. not shared), but still to be fit.

To rewrite for two unique paramters for each set and on shared parameter, you would rewrite it as follows, now with 5 parameters.

LabVIEW Champion. It all comes together in GCentral
What does "Engineering Redefined" mean??
Message 15 of 16
(351 Views)

## Re: simultaneous fitting with one shared parameter

Christian and Jim,

Now I completely understand your example.