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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Fitting and Area

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
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 ) ;
1   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 12/18/2006 : 03:03:19 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000