T O P I C R E V I E W |
ibvmt |
Posted - 07/15/2005 : 09:56:07 AM 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 |
2 L A T E S T R E P L I E S (Newest First) |
ibvmt |
Posted - 07/18/2005 : 05:06:58 AM 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 |
easwar |
Posted - 07/15/2005 : 10:26:05 AM 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
|