[Kst] branches/work/kst/1.5/kst/src/libkstmath
Duncan Hanson
duncan.hanson at gmail.com
Thu Jun 21 18:54:17 CEST 2007
SVN commit 678549 by dhanson:
CCBUG:147050 if averageLen is too large, ignore it.
M +1 -1 psdcalculator.cpp
--- branches/work/kst/1.5/kst/src/libkstmath/psdcalculator.cpp #678548:678549
@@ -314,7 +314,7 @@
int PSDCalculator::calculateOutputVectorLength(int inputLen, bool average, int averageLen) {
int psdloglen;
- if (average) {
+ if (average && pow(2.0, averageLen) < inputLen) {
psdloglen = averageLen;
} else {
psdloglen = int(ceil(log(double(inputLen)) / log(2.0)));
More information about the Kst
mailing list