comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Interpolate between two curves
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Interpolate between two curves [message #75601] Sun, 27 March 2011 08:16 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Mar 26, 9:49 am, Gray <grayliketheco...@gmail.com> wrote:
> On Mar 25, 9:55 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> On Mar 25, 9:27 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
>
>>> Why would you need to loop with interpol?
>
>>> -Jeremy.
>
>> Because it can only handle 1-d data.  I think I figured out my answer,
>> though.
>
> To elaborate:  since the z-values are linear in y, then the z value
> for any x,y pair should be:
> z = 5 * [y-y_0(x)] / y_5(x)
> So I just calculate my y_0 and y_5 values for all my x's, and then my
> z's fall out.

And of course (after a geometry refresher) it's actually:
z = 5 * [y - y_0(x)] / [y_5(x) - y_0(x)]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interpolate between two curves
Next Topic: Books Arriving, Shipping Today!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:36:42 PDT 2025

Total time taken to generate the page: 0.00461 seconds