[SciPy-User] Usage of scipy.signal.resample

markus.proeller@if... markus.proeller@if...
Wed Aug 26 06:31:34 CDT 2009


Hello,

I have a question concerning the resample function of scipy.
I have the following code:

from scipy.signal import resample
>>>x = array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>>>resample(x,5)
array([ 2.5       ,  1.26393202,  4.5       ,  5.5       ,  8.73606798])

I don't understand the first value of 2.5.
My scipy version is 0.7.0

Thanks for help,

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20090826/159d40d9/attachment-0001.html 


More information about the SciPy-User mailing list