| junsung |
Posted - 12/15/2006 : 5:56:40 PM Origin Version (Select Help-->About Origin): 7.5853 Operating System: Window XP (SP2)
Hi, all I tried to do some fitting with integration. I know there has been several discussons about fitting with integration, but I cannot find any related one. If I'm wrong, please let me know which topic I should have a look.
My fitting function is like F[x] = Integral^(inf)_(-inf) {function(x.t)}dt. The integration has to be done for another parameter "t".
I have tried with the following code, but I didn't get any values. Could you be kind to tell me why this is not working? Any comments or suggestions will be very helpful for me.
In the NLSF. "Use Origin C" is on. -------------- static double astore, bstore; Dataset dst("Data1_t");//Data1_t already exists Dataset dsF("Data1_F");//empty Data1_f already exists Dataset dsX("Data2_x");//Data2_x already exists Dataset dsFF("Data2_FF");// empty Data2_FF already exists int nSize = dst.GetLowerBound(); int mSize = dsX.GetLowerBound(); if(a!=astore || b=bstore) { dsF.SetSize(nSize); for(int ii=0;ii<mSize; ii++) { dsF = a*exp(dst) + b*exp(dsX[ii]); Curve crv ("Data1_t", "Data1_F"); dsFF[ii] = area(crv); } astore=a ; bstore=b; }; y = Data_table( x, &dsFF, &dsX ) ; |