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

Ivo Maljevic ivo.maljevic at gmail.com
Sat Feb 27 05:02:07 EST 2010


David,
Nice way of avoiding log2, but how do you determine the length of your tab
array?
Do you want to chose an arbitrary large array, or you still want to use log2
call based on an input argument to the function nexpow2()?
In other words, how would you make a generic nextpow2() function?
Ivo

On 27 February 2010 03:22, David Goldsmith <d.l.goldsmith at gmail.com> wrote:

> On Sat, Feb 27, 2010 at 12:16 AM, Charles R Harris <
> charlesr.harris at gmail.com> wrote:
>
>>
>>
>> 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 at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at 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/593f1a6e/attachment.html>


More information about the SciPy-User mailing list