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
 Interpolation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ibvmt

Switzerland
Posts

Posted - 07/15/2005 :  09:56:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP pro

What is the OriginC equivalent for the Labtalk interpolation and the necessary declarations?
e.g.: StatData_v=AWData_v(StatData_skm);
I couldn't find it anywhere.

Thanks
Peter

easwar

USA
1965 Posts

Posted - 07/15/2005 :  10:26:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Peter,

There is a global function: Origin C Language Reference->Global Functions->Analysis->Curve_xfromY
that you can find in the help files.

This function is the equivalent of the LabTalk () method of finding interpolated values. Note that this function will be sensitive to the line connection type if the data is graphed and you have changed the line connection type from straight to B-spline, Spline etc. If no graph, or no change to connection type, the default of linear interpolation is used.

Also one could call the NAG library function for spline interpolation if you are interested. You can find sample code here:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268

Easwar
OriginLab


Go to Top of Page

ibvmt

Switzerland
Posts

Posted - 07/18/2005 :  05:06:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Easwear

I found the function.
In my case I would have to use Curve_yfromx.
This function returns a double value.
So I would have to include it in a loop over all datapoints.
The Labtalk equivalent does it in a one line command for the whole data column.

Thanks
Peter
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