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

Charles R Harris charlesr.harris at gmail.com
Sat Feb 27 14:03:02 EST 2010


On Sat, Feb 27, 2010 at 11:58 AM, Ivo Maljevic <ivo.maljevic at gmail.com>wrote:

> I am sorry guys, but the solution I've proposed, and the one that was
> proposed by the scipy camp would cause confusion for those who switch from
> Matlab, and I just checked that.
> If you are going to use the same name as the Matlab one, than this function
> should return the m such that 2**m >= abs(n), and should not return 2^m.
>
> Whatever approach you guys want to use (and I believe that especially given
> what the function should return), do not return 2**m, but just m instead.
> For example:
>

For the table approach, it is the index returned by searchsorted. For floats
it is np.frexp(x)[1].

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


More information about the SciPy-User mailing list