T O P I C R E V I E W |
VolkerPresser |
Posted - 09/29/2005 : 2:45:28 PM 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 |
2 L A T E S T R E P L I E S (Newest First) |
VolkerPresser |
Posted - 09/29/2005 : 6:28:01 PM 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 |
easwar |
Posted - 09/29/2005 : 3:24:16 PM 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
|