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

Charles R Harris charlesr.harris@gmail....
Sat Feb 27 02:16:49 CST 2010


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?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100227/86463a53/attachment.html 


More information about the SciPy-User mailing list