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

Charles R Harris charlesr.harris@gmail....
Sat Feb 27 12:31:32 CST 2010


On Sat, Feb 27, 2010 at 11:02 AM, Robert Kern <robert.kern@gmail.com> wrote:

> On Sat, Feb 27, 2010 at 04:02, Ivo Maljevic <ivo.maljevic@gmail.com>
> wrote:
> > David,
> > Nice way of avoiding log2, but how do you determine the length of your
> tab
> > array?
>
> The input arrays can only be so large. Even on 64-bit machines, the
> table need not have more than 64 entries.
>
>  tab = 2 ** np.arange(np.iinfo(np.intp).bits)
>
>
Or

tab = 1 << arange(iinfo(intp).bits - 1)

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


More information about the SciPy-User mailing list