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 for Programming
 Forum for Origin C
 Fitting and Area
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

junsung

Germany
Posts

Posted - 12/15/2006 :  5:56:40 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 ) ;

Deanna

China
Posts

Posted - 12/18/2006 :  03:03:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Junsung. Would you please take a look at Zachary's reply to the following post?
http://www.originlab.com/forum/topic.asp?TOPIC_ID=5363

Deanna
OriginLab Technical Services
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