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
 Interpolation

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



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