Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
sharapova
Posted - 12/11/2014 : 04:55:18 AM Hi there, I have experimental data that seem to give a sigmoidal like shape. My supervisor told me to fit an error function (but he didn't specifiy further). Wikipedia gives me the following:
1. I need to introduce fitting parameters to account for x/y shift and the curvature...I am a bit confused about the integral, but I was thinking to adjust the gaussian function inside of it, so I would substitute exp(-x2) by A + exp(-k(x2-x0))
but maybe this is wrong and there is an easier way to do this ?
Anyways,
2. How can I implement this in Origin ? I would prefer to avoid coding since I only started using this software. I don't quite see how to insert a formula containing an integral, the more so as I am wondering whether Origin is capable of doing such a fit..
I am looking forward to your answers
Cheers
3 L A T E S T R E P L I E S (Newest First)
Hideo Fujii
Posted - 12/12/2014 : 12:45:55 PM Hi sharapovaA
> Maybe one of the parameters is redundant ?
I don't think so, and maybe your initial parameter values are not reasonably good enough?
> the Origin built in error function doesnt seem to be defined for negative x values
As far as I tested in my Origin 2015, erf(x) takes negative X, of course resulting erf(-x)= -erf(x). Which version of Origin are you using?
--Hideo Fujii OriginLab
sharapova
Posted - 12/12/2014 : 10:52:10 AM Hi Hideo,
I tried to define a new user built function using the user interface (I dont know how to code in Origin) but the fit doesnt converge and Origin tells me that I might have overparametrized... Maybe one of the parameters is redundant ? Likewise, the Origin built in error function doesnt seem to be defined for negative x values...do you maybe have any more advice on that ?
cheers and thx in advance !
Hideo Fujii
Posted - 12/11/2014 : 11:51:35 AM Hi SharapovaA
As Origin has the built-in math function of erf(x), you can define your shifted fitting function as:
Function Type: LabTalk
Parameters: x0,y0,A,k
Function: y=A*erf(k*(x-x0))+y0