Sinc interpolation [message #35518] |
Mon, 16 June 2003 06:40  |
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
|
|
|
sec : U Re: Sinc interpolation [message #35540 is a reply to message #35518] |
Mon, 23 June 2003 16:16  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
Craig Markwardt wrote:
>
> the_cacc@hotmail.com (trouble) writes:
>> OK, I'm stuck. Can someone show me how to sinc interpolate? My code
>> does not do it very well... at all.
> [ new post ]
>> Coo-ee, anyone there?
>
> Since you appear to be using a pig call, I'm not sure I should
> respond. :-)
>
Craig,
Pig call indeed!
Coo-ee is a time-honoured, traditional Australian bushman's call
for long distance communication.
Didn't you ever watch the 1960's Aussie TV show "Skippy the Bush
Kangaroo?"
Shame on you. Thanks to that show, every Aussie kid knew how to whistle
up
a helpful kangaroo using a gumleaf.
Andrew
------------------------------------------------------------ -----------------
Andrew D. Cool
Electromagnetics & Propagation Group
Intelligence, Surveillance & Reconnaissance Division
Defence Science & Technology Organisation
PO Box 1500, Edinburgh
South Australia 5111
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ -----------------
|
|
|
Re: Sinc interpolation [message #35543 is a reply to message #35518] |
Mon, 23 June 2003 08:27  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
the_cacc@hotmail.com (trouble) writes:
> OK, I'm stuck. Can someone show me how to sinc interpolate? My code
> does not do it very well... at all.
[ new post ]
> Coo-ee, anyone there?
Since you appear to be using a pig call, I'm not sure I should
respond. :-)
Have you checked/used other sinc interpolation codes on-line?
Example: Buie library function SINT().
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
|