[Kst] [Bug 147050] Spectrum average window can be larger than the data.
Duncan Hanson
duncan.hanson at gmail.com
Thu Jun 21 18:54:21 CEST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=147050
------- Additional Comments From duncan.hanson gmail com 2007-06-21 18:54 -------
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