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
 error function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

VolkerPresser

Germany
Posts

Posted - 09/29/2005 :  2:45:28 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there,

I tried to fit an error function to data points. The erf has the form:

y = a - a * erf(x/b)

However, it looks like the built in nag_erf(x) term does not support a parameter inside the erf-term? Or am i mistaken?
Maybe someone can give me an advice to solve that problem.

Thank you for your help


Volker



Origin Version: 7.5
Operating System: winXP

easwar

USA
1964 Posts

Posted - 09/29/2005 :  3:24:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Volker,

I tried this in 7.5SR5 and it worked fine for me. Note that you could use erf() or nag_erf(). The two are different in that the erf() function calls internal Origin function that has existed since before NAG was added. nag_erf() calls the NAG library. Both should yield same results.

So I created an FDF with the function
y = a - a * erf(x/b);
with Origin C turned on in NLSF. I could then simulate with the function to generate some data, and then fit that data with some changed parameters and I could retreive the values I used in the simulate dialog.

What exactly is the problem you are encountering?

Easwar
OriginLab


Go to Top of Page

VolkerPresser

Germany
Posts

Posted - 09/29/2005 :  6:28:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Well thank you very much for your quick answer. I really don't know what exactly went wrong - because now it works just fine as it should. Maybe it was just one of these long days at work, when things go wrong...

So, anyhow... 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