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
 NL cruve fit using previous rows

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
shaharsu2 Posted - 05/05/2011 : 05:34:14 AM
Hi all,

I'm trying to create a non linear curve fitting function that looks like this:

y = C * (x(i) - x(i-1))

with x(i) being the "current" value and x(i-1) being the "previous" value for each data point.

Any idea how I can achieve this?

Thanks in advance!

Shahar.

Origin Ver. 8.1 and Service Release 1
Operating System: WinXP
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 05/05/2011 : 10:23:37 PM
Hi Shahar,

Maybe you can try to create a fitting function with two independent variables, such as y = C*(x1-x2), where x1 is for the "current" value and x2 for the "previous" value.

And then you can add a new column to worksheet, copy the x column and paste to this new column from the second row, then fill the first row with the desired value, such 0, and delete the last row. So, when performing nonlinear fit, the x column is for x1 variable, and the newly created column is for x2 variable.

Please refer to this tutorial on how to perform fitting with multiple independent variables.

Penn

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