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
 Origin Forum
 Fitting self-consistency equation

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
AndreaP88 Posted - 10/17/2014 : 06:24:06 AM
Hi!

I would like to fit the following function

x=tanh(b*(J*x+h))

where b,J,h are parameters.

Is there a way to do this with origin?

Thanks in advance!

Origin Ver. and Service Release (Select Help-->About Origin): 9.1
Operating System: Windows 8.1
4   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 10/21/2014 : 3:29:52 PM
Hi Andrea,

Forgive me if I misunderstood what is your application as follows:

Your formula, x=tanh(b*(J*x+h)) leads the solution of simultaneous equation: y=x; and y=tanh(b*(J*x+h)) as shown in the sample below (here, b=3, J=2, h=-1 are given). I guess that when you have these solutions (in this sample case, (0.62155, 0.62155) and (0.9947, 0.9947), one may think that you can estimate the parameters from the solution.



Sure, you can apply fitting to this data with y=tanh(b*(J*x+h)) function. However, as depending on varying from a unique parameter set to infinitely many combinations, convergence may not be guaranteed.
For example, in this sample with given two datapoints, the function doesn't converge as overparameterized. In this sample, as shown, I tried to fix b and J to 2.5 and 1.5 respectively, and somehow converged to h=-0.64:



So, please consider carefully, if the above description makes some sense.

--Hideo Fujii
OriginLab
jasonzhao Posted - 10/21/2014 : 05:03:04 AM
Dear Andrea,

Regression attempts to model the relationship between two variables, However, in your model, there is only one variable X, so I do not really know which method should we adopt unless you tell me more details or thought about this unusual calculation.

Best regards,
Jason Zhao
OriginLab Tech Service
AndreaP88 Posted - 10/21/2014 : 04:32:11 AM
Hi!

Thank you very much for your replay!

No actually the equation has x on both the right and left side! (this is what caused be some troubles)

All the best,

Andrea
jasonzhao Posted - 10/19/2014 : 11:27:11 PM
Dear Andrea,

Did you mean that y=tanh(b*(J*x+h)).
If it is, you can use user defined fitting function to solve this problem.
Please refer to the tutorial below for user defined fitting function.
http://www.originlab.com/doc/Tutorials/UserDef-FitFunc

and do not hesitate to contact us for further questions.

Best regards,
Jason Zhao
OriginLab Tech Service


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