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 with integral help
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Varanda

2 Posts

Posted - 09/29/2015 :  3:18:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 and Service Release SR0(Select Help-->About Origin):
Operating System:Windows XP
or
Origin Ver. 2015 and Service Release SR0(Select Help-->About Origin):
Operating System:Windows 8.1

I need fitting a Langevin function, in which one parameter must be firstly optimized by using a Lognormal distribution.
The complete equation is:



and the parameters to fit are: y0, Ms, d, A, w, b and c

Please, note that the variable is “x”, but the integral is related to “d”. Thus, d parameter must be previously optimized to be used in each interaction step.
Can you help me, please?

jasonzhao

China
262 Posts

Posted - 09/30/2015 :  02:00:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can refer to this tutorial:
http://www.originlab.com/doc/Tutorials/Fitting-Integral-LabTalk

Best regards!
Jason
OriginLab Technical Service
Go to Top of Page

Varanda

2 Posts

Posted - 10/06/2015 :  4:04:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello jasonzhao,

Thank u for replay.
I used the mentioned turorial, bur the curve fit return that the great dependence of the variable. I use this script:

return (cosh(0.06108*(exp(ixc))^3*(ih+x))/sinh(0.06108*(exp(ixc))^3*(ih+x)))-1/(0.06108*((exp(ixc))^3*(ih+x))) * (iA * exp(-(ln(t/ixc))^2/(2*iw^2)) / (sqrt(2*PI)*iw*t));

with
Integration variable: t
Arguments: ixc, iw, iA, ih

Parameters: y0,xc,w,A,h,Ms,B

and the Function body is:

y0 + Ms*integral(MyIntegrand, 0.00001 ,+inf ,xc ,w ,A ,h)+B*x

Observing the expression that sent the first post, I'm making a mistake? At where?

Could you help me again?
Go to Top of Page

lkb0221

China
497 Posts

Posted - 10/07/2015 :  3:04:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe try this one?
http://www.originlab.com/doc/Tutorials/Fitting-Integral-NAG
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