Get Help

Turn on suggestions

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

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- genfit problem about number of parameters

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

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

11-24-2020
12:35 PM

11-24-2020
12:35 PM

The error message says the number of fitting parameters and guess values must be the same, but they do !!!

Please, take a look to the file attached, this is a short programm.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

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

11-24-2020
02:56 PM

11-24-2020
02:56 PM

Not exactly sure what you mean by *"The combination of these three functions gives a family of non-asymptotic sigmoid functions"*. Which kind of "combination"?

If you have a simple additive combination in mind, you would have to do it that way, nut the result sure is not satisfactory (and very sensitive wrt the guess values):

But if you want to say that you would like to split your curve into three parts and fit a different function type to each part, then you would have to do the splitting yourself and fit three times.

BTW, Here's a function which seems to fit your data pretty well:

6 REPLIES 6

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

11-24-2020
02:56 PM

11-24-2020
02:56 PM

Not exactly sure what you mean by *"The combination of these three functions gives a family of non-asymptotic sigmoid functions"*. Which kind of "combination"?

If you have a simple additive combination in mind, you would have to do it that way, nut the result sure is not satisfactory (and very sensitive wrt the guess values):

But if you want to say that you would like to split your curve into three parts and fit a different function type to each part, then you would have to do the splitting yourself and fit three times.

BTW, Here's a function which seems to fit your data pretty well:

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

11-24-2020
07:22 PM

11-24-2020
07:22 PM

Re: genfit problem about number of parameters

Yeah, I was talking about "linear combinations of functions" , sorry.

Thanks, you helped me to fix this error, now I can fit with genfit.

I think mathcad is not good for fitting points if they are not well close to a mathematical curve, but experimental points are random up and down from such a curve.

I was hopping to fit experimental points to non asymptotic sigmoid curves like this https://stats.stackexchange.com/questions/398551/logistic-function-with-a-slope-but-no-asymptotes

(because some chemical law predicts this) you see there are 5 paramenters, I also added a sixth parameter x0 in this form: instead x I put (x-x0) hopping the fitting process could find the best x0, but the outcome was ugly.

SigmaPlot can fit this without problem (sorry for comparison) but at the moment I haven't this software.

Thank you anyway.

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

11-24-2020
08:19 PM

11-24-2020
08:19 PM

Re: genfit problem about number of parameters

Mathcad often is very sensible with respect to the guess values which will have to be chosen with great care.

You may want to have a look at the eval version of CurveExpert Pro. Even in demo w/o the various export options mode its quite useful for curve fitting. It has a lot of predefined function types which it tries on the data and you may also define your own.

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

11-24-2020
08:33 PM

11-24-2020
08:33 PM

Re: genfit problem about number of parameters

+1 for CurveFit Pro. One thing I have been using it for lately is reverse engineering a few older nomographs that are used in my type of civil engineering, but for which I cannot find the equations that were used to build them. I extract data points from the curves with a scale, drop them into CurveFit Pro, and find the best fit equation that I can then use in Mathcad, Excel, or one of my programmable HP calculators.

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

11-25-2020
05:12 AM

11-25-2020
05:12 AM

Re: genfit problem about number of parameters

Could not find "CurveFit Pro" in a first quick search on the net. Did you mean "CurveExpert Pro" which I mentioned above?

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

11-25-2020
03:31 PM

11-25-2020
03:31 PM

Re: genfit problem about number of parameters

Werner...

You are correct. I brain-freezed the name.

Fred