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 #32671 is a reply to message #32670] Fri, 01 November 2002 06:01 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
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.
>
> Thank you. Hector
>

Perhaps you want to use the following keywords:
Check out the help file to see the effects the keywords
have on how the arrays line up to be convolved.
(Note: you must explicitly set center=0, or else it defaults
to 1)

z=convol(a,k,center=0,edge_wrap=1)

a 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0
k 1 0 0 0 0 0 0 0 0

z 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0


Cheers,
bob stockwell
[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: Thu Oct 09 12:27:49 PDT 2025

Total time taken to generate the page: 1.36508 seconds