T O P I C R E V I E W |
hydrix |
Posted - 04/10/2007 : 12:03:42 PM Origin Version (Select Help-->About Origin): 7.5 Operating System:XP hi; is it possible to fit the errorfunction (something like y=P1*(1-erf(x/P2)) where P1 and P2 are the fitting parameters) to a dataset? and if yes how? thank you
|
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 04/11/2007 : 08:12:47 AM Try to compile the function below. If it does not compile then you need to update your Origin 7.5. (Latest version is SR6.) If it does compile then you are using erf or nag_erf incorrectly in your fitting function.
void test_erf(double x) { out_double("erf(x)=",erf(x)); out_double("nag_erf(x)=",nag_erf(x)); }
Mike Buess Origin WebRing Member |
hydrix |
Posted - 04/11/2007 : 06:08:27 AM quote:
See this topic on fitting with error function... http://www.originlab.com/forum/topic.asp?TOPIC_ID=4326
See Help > Tutorials > Tutorial 11 for instructions on how to create a fitting function.
Mike Buess Origin WebRing Member
hello, i tried as you said , but when i compile the origin c file the reply is: C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlferf.fit(40) :Error, function or variable erf not found nag_erf does not work too. so where do i find the nag_erf programme ? thanks
|
Mike Buess |
Posted - 04/10/2007 : 12:27:27 PM See this topic on fitting with error function... http://www.originlab.com/forum/topic.asp?TOPIC_ID=4326
See Help > Tutorials > Tutorial 11 for instructions on how to create a fitting function.
Mike Buess Origin WebRing Member |