[Pkg-octave-devel] Bug#706640: octave-common: interpft fails when downsampling
Ubiratan S. Freitas
usfreitas at gmail.com
Thu May 2 20:20:01 UTC 2013
- Next message: [Pkg-octave-devel] Bug#706761: override: dynare:math/extra, octave-audio:math/extra, octave-benchmark:math/extra, octave-bim:math/extra, octave-communications:math/extra, octave-control:math/extra, octave-data-smoothing:math/extra, octave-dataframe:math/extra, octave-econometrics:math/extra, octave-epstk:math/extra, octave-financial:math/extra, octave-fixed:math/extra, octave-fpl:math/extra, octave-ga:math/extra, octave-general:math/extra, octave-geometry:math/extra, octave-gsl:math/extra, octave-image:math/extra, octave-io:math/extra, octave-java:math/extra, octave-linear-algebra:math/extra, octave-mapping:math/extra, octave-miscellaneous:math/extra, octave-missing-functions:math/extra, octave-msh:math/extra, octave-nan:math/extra, octave-nnet:math/extra, octave-nurbs:math/extra, octave-ocs:math/extra, octave-octcdf:math/extra, octave-octgpr:math/extra, octave-odepkg:math/extra, octave-openmpi-ext:math/extra, octave-optim:math/extra, octave-optiminterp:math/extra, octave-pkg-dev:devel/extra, octave-plot:math/extra, octave-quaternion:math/extra, octave-secs1d:math/extra, octave-secs2d:math/extra, octave-signal:math/extra, octave-sockets:math/extra, octave-specfun:math/extra, octave-splines:math/extra, octave-statistics:math/extra, octave-strings:math/extra, octave-struct:math/extra, octave-symbolic:math/extra, octave-tsa:math/extra, octave-vrml:math/extra, octave-zenity:math/extra, qtoctave:math/extra
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Package: octave-common
Version: 3.6.2-5
Dear Maintainer,
The function "interpft" has a problem when used for downsampling a vector.
The following octave code triggers the problem:
octave:11> clear
octave:12> y=zeros(100000,1);
octave:13> yi = interpft(y,31000);
error: reshape: can't reshape 33334x1 array to 31000x1 array
error: called from:
error: /usr/share/octave/3.6.2/m/general/interpft.m at line 86, column 7
The function works correctly in squeeze. I believe the problem to be at the
line 71 of this interpft.m:
inc = max (1, fix (m/n));
This line replaced a while loop in the squeeze version but the new version
gives a wrong result when downsampling. Replacing this line with
inc = ceil (m/n);
solved the problem for the tests I ran. I believe this bug is also
present in the version 3.6.4-1 in experimental since the file
interpft.m is the same in both versions AFAICT.
Best wishes,
Ubiratan Freitas.
- Next message: [Pkg-octave-devel] Bug#706761: override: dynare:math/extra, octave-audio:math/extra, octave-benchmark:math/extra, octave-bim:math/extra, octave-communications:math/extra, octave-control:math/extra, octave-data-smoothing:math/extra, octave-dataframe:math/extra, octave-econometrics:math/extra, octave-epstk:math/extra, octave-financial:math/extra, octave-fixed:math/extra, octave-fpl:math/extra, octave-ga:math/extra, octave-general:math/extra, octave-geometry:math/extra, octave-gsl:math/extra, octave-image:math/extra, octave-io:math/extra, octave-java:math/extra, octave-linear-algebra:math/extra, octave-mapping:math/extra, octave-miscellaneous:math/extra, octave-missing-functions:math/extra, octave-msh:math/extra, octave-nan:math/extra, octave-nnet:math/extra, octave-nurbs:math/extra, octave-ocs:math/extra, octave-octcdf:math/extra, octave-octgpr:math/extra, octave-odepkg:math/extra, octave-openmpi-ext:math/extra, octave-optim:math/extra, octave-optiminterp:math/extra, octave-pkg-dev:devel/extra, octave-plot:math/extra, octave-quaternion:math/extra, octave-secs1d:math/extra, octave-secs2d:math/extra, octave-signal:math/extra, octave-sockets:math/extra, octave-specfun:math/extra, octave-splines:math/extra, octave-statistics:math/extra, octave-strings:math/extra, octave-struct:math/extra, octave-symbolic:math/extra, octave-tsa:math/extra, octave-vrml:math/extra, octave-zenity:math/extra, qtoctave:math/extra
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pkg-octave-devel
mailing list