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

Home » Public Forums » archive » Re: IDL hilbert() function
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: IDL hilbert() function [message #63175] Mon, 03 November 2008 01:16 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Sat, 1 Nov 2008 02:14:54 -0700 (PDT), lecacheux.alain@wanadoo.fr
wrote:

> Is this function actually computing the Hilbert transform ?
> The Hilbert transform is known to be idempotent, i.e. H(H(x)) = -x.
> However, by applying the IDL function, one get for instance :
> IDL> print, hilbert (hilbert (indgen(8)))
> ( 6.00000, 0.000000)( 7.00000, 0.000000)
> ( 4.00000, 0.000000)( 5.00000, 0.000000)
> ( 2.00000, 0.000000)( 3.00000, 0.000000)
> ( 0.000000, 0.000000)( 1.00000, 0.000000)

It works for this:
x=findgen(180)/90.*!pi
plot,x,hilbert(hilbert(sin(x))),/xs
oplot,x,-sin(x),psym=1

Not for this (flips):
plot,hilbert(hilbert((indgen(1000))))
oplot,indgen(1000),psym=1

I'm not sure why, but check the hilbert.pro in the IDL-lib directory
to see how it's implemented.
[Message index]
 
Read Message
Read Message
Previous Topic: FREE SOFTWARE ONLINE
Next Topic: Cleaver 2d reverse indicies?

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

Current Time: Wed Oct 08 18:15:38 PDT 2025

Total time taken to generate the page: 0.00389 seconds