[Kst] extragear/graphics/kst/src/libkstmath
Duncan Hanson
duncan.hanson at gmail.com
Wed Jul 12 03:04:57 CEST 2006
SVN commit 561384 by dhanson:
CCBUG:129168 fix incorrect division in psdcalculator
M +1 -1 psdcalculator.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/psdcalculator.cpp #561383:561384
@@ -199,7 +199,7 @@
for (i_samp = 0; i_samp < currentCopyLen; i_samp++) {
mean += input[i_samp + ioffset];
}
- mean /= (double)_awLen; // _awLen != 0 b/c outputLen != 0.
+ mean /= (double)currentCopyLen;
}
// apply the PSD options (removeMean, apodize, etc.)
More information about the Kst
mailing list