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
 Non-Linear Curve fitting function won't fit data

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
LCG Posted - 06/26/2012 : 8:17:47 PM
Hello,

I'm using Origin Lab version 7.0, SR2. I wrote in a function that compiles but it won't fit my data. I'm hoping it's just a small mistake that I'm overlooking. Any help I can get with this will really be greatly appreciated. I have written the equation, including the parameters and a data set below.
Thank you for your help,

Q=(((P4*(H+P2)+1)-((P4*(H+P2)-1)^(2))-4*((P4^(2))*H*P2)^(0.5))*((P5-P6)+P2*P6))/(2*P4*P2)

Where Q= Dependent Variable H= Independent Variable P2,P4,P5,P6= Parameters where P2=0.5 and does not vary, P4=9e6 and does vary, P5=27 and does not vary and P6= -1694 and does not vary.

H Q
0 0
0.005 26.8
0.025 -25
0.1 -232
0.2 -503
0.3 -760
0.5 -1114
1.25 -1599
1.5 -1603
2.5 -1669
3.5 -1685
5 -1695

Thank you

2   L A T E S T    R E P L I E S    (Newest First)
LCG Posted - 07/05/2012 : 2:12:30 PM
Thanks for your help Hideo! I'm still stuck but I'm not really sure why. What does it mean to have the numbers stop changing but no red line is fitting. I'm trying another equation and the number I'm looking for ( the varying parameter) gets close to a number I know it should be but there is no red line actually fitting to the data. Also one more question, is there a source I can go to for creating a new model? Is there such a forum where I can get help creating a new equation?

Thank you :)
Hideo Fujii Posted - 06/27/2012 : 11:40:04 AM
Hi LCG,

> Q=(((P4*(H+P2)+1)-((P4*(H+P2)-1)^(2))-4*((P4^(2))*H*P2)^(0.5))*((P5-P6)+P2*P6))/(2*P4*P2)
> ...P2,P4,P5,P6= Parameters where
> P2=0.5 and does not vary,
> P4=9e6 and does vary,
> P5=27 and does not vary and
> P6= -1694 and does not vary.

The curve with these initial values seems far away from your data.
See the screenshot below. Graph1 is the plot of your data,
and Function1 is the initial fitted curve - both Y range of the function and
the shape of the curve are away from your data - it seems for me that
either you should find better initial values, or your model function is not appropriate.



Hope my observation is helpful.

--Hideo Fujii
OriginLab

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