[SciPy-User] frequency components of a signal buried in a noisy time domain signal

David Goldsmith d.l.goldsmith@gmail....
Sat Feb 27 02:22:14 CST 2010


On Sat, Feb 27, 2010 at 12:16 AM, Charles R Harris <
charlesr.harris@gmail.com> wrote:

>
>
> On Fri, Feb 26, 2010 at 12:05 PM, Nils Wagner <
> nwagner@iam.uni-stuttgart.de> wrote:
>
>> Hi all,
>>
>> A common use of Fourier transforms is to find the
>> frequency components of a signal buried in a noisy time
>> domain signal.
>>
>> I found a Matlab template at
>>
>> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fft.shtml
>>
>> Matlab has a function
>>
>> nextpow2(L)
>>
>>
> I use searchsorted for that.
>
> In [5]: tab = 2**arange(30)
>
> In [6]: tab[tab.searchsorted(10)]
> Out[6]: 16
>
> In [7]: tab[tab.searchsorted(81)]
> Out[7]: 128
>
> Is there a similar build-in function in numpy/scipy ?
>>
>>
> It would be handy sometimes. Where would it go?
>

Why wouldn't it go in fftpack?

DG


>
> Chuck
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100227/2a73e826/attachment.html 


More information about the SciPy-User mailing list