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

Home » Public Forums » archive » convol
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
convol [message #92052] Sun, 04 October 2015 01:18 Go to next message
Dete van Eeden is currently offline  Dete van Eeden
Messages: 32
Registered: July 2015
Member
Hallo

I want to use the convol function for an array and a kernel.

I am not sure how the center option works? how and where do I define it?

at the moment the result is not quite what it should be...

Any advise?
Re: convol [message #92053 is a reply to message #92052] Sun, 04 October 2015 01:37 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 10/04/2015 10:18 AM, Dete van Eeden wrote:
> Hallo
>
> I want to use the convol function for an array and a kernel.
>
> I am not sure how the center option works? how and where do I define it?
>
> at the moment the result is not quite what it should be...
>
> Any advise?

https://xkcd.com/722/

Cheers,

Fabien
Re: convol [message #92054 is a reply to message #92053] Sun, 04 October 2015 01:49 Go to previous messageGo to next message
Dete van Eeden is currently offline  Dete van Eeden
Messages: 32
Registered: July 2015
Member
On Sunday, October 4, 2015 at 10:37:37 AM UTC+2, Fabien wrote:
> On 10/04/2015 10:18 AM, Dete van Eeden wrote:
>> Hallo
>>
>> I want to use the convol function for an array and a kernel.
>>
>> I am not sure how the center option works? how and where do I define it?
>>
>> at the moment the result is not quite what it should be...
>>
>> Any advise?
>
> https://xkcd.com/722/
>
> Cheers,
>
> Fabien

comics??
Re: convol [message #92055 is a reply to message #92054] Sun, 04 October 2015 02:05 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 10/04/2015 10:49 AM, Dete van Eeden wrote:
>>> Hallo
>>>> >
>>>> >I want to use the convol function for an array and a kernel.
>>>> >
>>>> >I am not sure how the center option works? how and where do I define it?
>>>> >
>>>> >at the moment the result is not quite what it should be...
>>>> >
>>>> >Any advise?
>>>
>>> https://xkcd.com/722/
>>>
>>> Cheers,
>>>
>>> Fabien
> comics??

This comic is a perfect illustration of the way you described your
problem. People here are very helpful but they have no crystal ball and
can't give you a better advice than "press more buttons".

http://www.catb.org/esr/faqs/smart-questions.html#beprecise
Re: convol [message #92056 is a reply to message #92055] Sun, 04 October 2015 02:15 Go to previous messageGo to next message
Dete van Eeden is currently offline  Dete van Eeden
Messages: 32
Registered: July 2015
Member
On Sunday, October 4, 2015 at 11:05:19 AM UTC+2, Fabien wrote:
> On 10/04/2015 10:49 AM, Dete van Eeden wrote:
>>>> Hallo
>>>> > >
>>>> > >I want to use the convol function for an array and a kernel.
>>>> > >
>>>> > >I am not sure how the center option works? how and where do I define it?
>>>> > >
>>>> > >at the moment the result is not quite what it should be...
>>>> > >
>>>> > >Any advise?
>>>>
>>>> https://xkcd.com/722/
>>>>
>>>> Cheers,
>>>>
>>>> Fabien
>> comics??
>
> This comic is a perfect illustration of the way you described your
> problem. People here are very helpful but they have no crystal ball and
> can't give you a better advice than "press more buttons".
>
> http://www.catb.org/esr/faqs/smart-questions.html#beprecise

thanks for being an idiot
Re: convol [message #92057 is a reply to message #92056] Sun, 04 October 2015 02:23 Go to previous messageGo to next message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 10/04/2015 11:15 AM, Dete van Eeden wrote:
>> http://www.catb.org/esr/faqs/smart-questions.html#beprecise
> thanks for being an idiot

I am sorry you think I am an idiot. I probably am since I can't solve
your problem...

All the best,

Fabien
Re: convol [message #92059 is a reply to message #92056] Sun, 04 October 2015 03:44 Go to previous messageGo to next message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Sunday, 4 October 2015 11:15:15 UTC+2, Dete van Eeden wrote:
> On Sunday, October 4, 2015 at 11:05:19 AM UTC+2, Fabien wrote:
>> On 10/04/2015 10:49 AM, Dete van Eeden wrote:
>>>> > Hallo
>>>> > > >
>>>> > > >I want to use the convol function for an array and a kernel.
>>>> > > >
>>>> > > >I am not sure how the center option works? how and where do I define it?
>>>> > > >
>>>> > > >at the moment the result is not quite what it should be...
>>>> > > >
>>>> > > >Any advise?
>>>> >
>>>> >https://xkcd.com/722/
>>>> >
>>>> >Cheers,
>>>> >
>>>> >Fabien
>>> comics??
>>
>> This comic is a perfect illustration of the way you described your
>> problem. People here are very helpful but they have no crystal ball and
>> can't give you a better advice than "press more buttons".
>>
>> http://www.catb.org/esr/faqs/smart-questions.html#beprecise
>
> thanks for being an idiot

(THIS is definitively not the way to get an answer anywhere on the net that I know of. But anyway, here it goes.)

The issue here is that you don't describe why CONVOL doesn't work like you expect. Given that CONVOL is extremely well documented, including the CENTER keyword, it is hard to know what your problem is.

http://www.exelisvis.com/docs/CONVOL.html#C_854643309_676409

You should describe what you did and why that isn't what you expected if you want answers.

A couple of (documented) gotchas are that

1) the CENTER keyword is set by default, and

2) CONVOL does not reverse the kernel unless /REVERSE is set, and thus by default calculates correlation rather than convolution in the mathematical sense.


--
Yngvar
Re: convol [message #92061 is a reply to message #92056] Mon, 05 October 2015 04:37 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 10/04/15 05:15, Dete van Eeden wrote:
> On Sunday, October 4, 2015 at 11:05:19 AM UTC+2, Fabien wrote:
>> On 10/04/2015 10:49 AM, Dete van Eeden wrote:
>>>> > Hallo
>>>> >>>
>>>> >>> I want to use the convol function for an array and a kernel.
>>>> >>>
>>>> >>> I am not sure how the center option works? how and where do I define it?
>>>> >>>
>>>> >>> at the moment the result is not quite what it should be...
>>>> >>>
>>>> >>> Any advise?
>>>> >
>>>> > https://xkcd.com/722/
>>>> >
>>>> > Cheers,
>>>> >
>>>> > Fabien
>>> comics??
>>
>> This comic is a perfect illustration of the way you described your
>> problem. People here are very helpful but they have no crystal ball and
>> can't give you a better advice than "press more buttons".
>>
>> http://www.catb.org/esr/faqs/smart-questions.html#beprecise
>
> thanks for being an idiot

Now, now. Don't take it personally. Fabien did provide good advice with
the last link (the comic did make me laugh...mostly because I've been in
that position myself, pressing buttons in blind panic mode. But I
digress....)

Getting back to your question, the documentation for CONVOL is pretty
thorough:
http://www.exelisvis.com/docs/CONVOL.html

When you say you are "not sure how the center option works? how and
where do I define it?" the doc in the above link should help.

To quote from the intro:
"The CENTER keyword controls the alignment of the kernel with the array
and the ordering of the kernel elements. If CENTER is explicitly set to
0, convolution is performed in the strict mathematical sense; otherwise,
the kernel is centered over each data point."

Now I go back to button pressing... :o)

cheers,

paulv
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cgstretch.....
Next Topic: IDL fails to start after OS X El Capitan upgrade

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

Current Time: Wed Oct 08 11:43:35 PDT 2025

Total time taken to generate the page: 0.01351 seconds