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
 NL cruve fit using previous rows
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

shaharsu2

1 Posts

Posted - 05/05/2011 :  05:34:14 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Penn

China
644 Posts

Posted - 05/05/2011 :  10:23:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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