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

Ivo Maljevic ivo.maljevic at gmail.com
Wed Aug 26 16:20:25 EDT 2009


Markus,
One question for you. If you are going to downsample your signal by an
integer value,
why don't you simply take every Mth sample (if M is your downsampling
ratio)?
Ivo

2009/8/26 <markus.proeller at ifm.com>

>
> 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
> _______________________________________________
> 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/20090826/d44876ea/attachment.html>


More information about the SciPy-User mailing list