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
 LabTalk Forum
 fittin a function

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
Evrim Umut Posted - 02/02/2011 : 10:05:27 AM
Hello
I am using Origin V8 in a Windows7 system.

I asked this question also in Origin C topic but I couldnt managed according to instructions.

I want to fit my data with a function:

y=a1 + a2/(x-a3)

where I want to draw y vs 1/(x-a3), make the fit, and after the fit origin gives me a1,a2 and a3. Here a3 is really crusial.
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/02/2011 : 11:05:52 AM
Hi Evrim,

So you want to perform an apparent linear fit to y versus 1/(x-a3) but your a3 is not known yet, and needs to be determined?

This would require some custom iterative coding, and cannot be done I think by simply defining a fitting function. You may need to do a loop where you pick an initial value of a3, transform your x values to 1/(x-a3), do a linear fit of y versus the 1/(x-a3), then adjust your a3, do the linear fit again, and repeat till you get some optimal value of a3 that give say a minimum for the r^2 of your linear fit.

But why do you have to do it this way? Why not just plot y versus x, and fit that with the nonlinear equation of
y=a1+a2/(x-a3)
and find the optimal a3 value that way using the nonlinear fitter?

Then, if you want, you can transform the x values of the data and the fit curve with that optimal value of a3 and plot the result as a linear curve if you want the graph to look linear?

Easwar
OriginLab

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