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

Home » Public Forums » archive » Re: Convolution, IDL & Numerical Recipes
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: Convolution, IDL & Numerical Recipes [message #32677 is a reply to message #32676] Thu, 31 October 2002 13:48 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Thu, 31 Oct 2002 13:50:29 -0700, Hector Aceves wrote:

> Hello..
>
> I am using IDL for some of my research and have a particular problem
> with convolution of two arrays. I have used IDL's CONVOL procedure and
> subroutine CONVLV given in NUMERICAL RECEIPES..both give different
> results. I hope some one can shed light on what the reason might be.

Because IDL's convol() really does a correlation, not a convolution at
all! In a true convolution, the kernel is reversed (rotated by 180
degrees). You could try z=convol(a,reverse(k)) to get a true
convolution for comparison.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL --> C++ ?
Next Topic: About file length

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

Current Time: Fri Oct 10 15:15:55 PDT 2025

Total time taken to generate the page: 1.11896 seconds