Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

12-02-2014
07:30 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-02-2014
07:30 PM

genfit - improve the results

Hello All,

I am using "genfit" routine to fit my data to a modeled signal. The modeled signal in the attached worksheet is sp(k,b) where "k" is the variable and "b" is a set of coefficients.

My first question is that : the output of the "genfit" does not perfectly match with the original data. Is there anything I could do to improve the results? (Except changing the guess values, because they are obtained from another section of the program)

For the second question, the residual function highly depends on the variable "k" as is shown by the graph. Is it a normal behaviour?

Thank you very much in advance

6 REPLIES 6

12-03-2014
12:19 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
12:19 PM

If you zoom in on the graph of Y and sp(k,bb) you will see that at the start Y leads sp(k,bb), in the middle there is almost no phase difference, and at the end sp(k,bb) leads Y. So you have a gradually varying phase, which is not allowed for in your fit. That's why the residuals look the way they do. Since your "data" is synthetic you will have to figure out why it is not modeled well enough by your function. I suspect that it has something to do with the fact that your data is created using 6 parameters, but you are only using 5 parameters in the fit (b0 is not used anywhere in your function).

12-03-2014
12:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
12:23 PM

Thank you Richard, b0 is constant everywhere. I replaced that with n0=1.337 during "genfit" process.

12-03-2014
12:28 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
12:28 PM

Your guess values are too far off. If you make b:=inn for the guesses, the fit is much better. Genfit is finding a local minimum.

12-03-2014
12:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
12:46 PM

Actually the goal of the calculation is to reconstruct the initial values "inn".

12-03-2014
01:12 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
01:12 PM

Maybe, but you still need better guesses. Genfit is an iterative solver, and with your current guesses it heads into a local minimum and stops.

12-03-2014
12:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

12-03-2014
12:42 PM

I double checked by replacing n0 with b0. Nothing changed.