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

Home » Public Forums » archive » Sinc interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Sinc interpolation [message #35518] Mon, 16 June 2003 06:40 Go to previous message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
OK, I'm stuck. Can someone show me how to sinc interpolate? My code
does not do it very well... at all.

Thanks.


PRO sinc_interpolate



; Sinc interpolation (1D).



n = 10




; Indices for which we have values.

ix = FINDGEN(n)



; The actual values.

y = findgen(n)




; Want value at this point.

x = 5.2




; Distances.

d = ABS(ix - x)



; Sinc.

s = SIN(d) / d




; Calculate value.

val = TOTAL(s * y)




print,'Sinc',val

print,'True',x







END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLgrPolygon borders
Next Topic: Re: IDLgrPolygon borders

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

Current Time: Wed Oct 08 14:56:26 PDT 2025

Total time taken to generate the page: 0.00450 seconds