The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 User built fitting function does not work!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

islan

Switzerland
6 Posts

Posted - 10/14/2013 :  10:46:17 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1G
Operating System: Windows 7, 64-bit

Hey folks!

I tried to built a function by my own but it won't work.

I followed the instructions in the Tutorial. And everything seemed to be fine until I tested it. Then nothing happend.

May someone tell me how I can upload my example and then I would be glad for any help or hints.


Ursina

Hideo Fujii

USA
1582 Posts

Posted - 10/14/2013 :  5:57:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ursina,

In the Fitting Function Builder, in the 4th panel to define the function form, have you tried to press the "Runner" button to do the quick-check of the function output with the given sample X value?
Often, very simple mistakes like unmatched parentheses, etc. caused the function unworkable.

Just my first guess.

--Hideo Fujii
OriginLab
Go to Top of Page

islan

Switzerland
6 Posts

Posted - 10/15/2013 :  05:45:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo

thanks for the hint. I realized that I forgot to iniziallize the parameters

But now after the parameters are initiallized it does it wrong. For some parameters I get 0. (offset = 0, mu = 0, w1 = 0, w2 = 0) And I don't understand that.

http://www.originlab.com/ftp/forum_and_kbase/Images/doubleGauss.txt

Do you have any idea?

Ursina
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 10/15/2013 :  6:05:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ursina,

> I get 0. (offset = 0, mu = 0, w1 = 0, w2 = 0)

It seems that the term, e.g., -(x-xc)^2/w2^2 in your function would cause 0-divide error.

Helps?

--Hideo Fujii
OriginLab
Go to Top of Page

islan

Switzerland
6 Posts

Posted - 10/16/2013 :  09:03:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

Hi Hideo

yes, I understand the problem of the 0-divide. But why are those (offset = 0, mu = 0, w1 = 0, w2 = 0) parameters zero?

And how do I have to change my fitting function to be able fitting more than one peak at once?

Thanks :)
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000