[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Wed Sep 22 21:12:25 CEST 2004


CVS commit by netterfield: 

Fix bug in 'minPosX': Autoscaled Log X mode now ignores the 0 bin...
Also fix bug in highest frequency bin of psd.


  M +9 -9      kst2dplot.cpp   1.268
  M +3 -5      kstpsd.cpp   1.4
  M +0 -1      kstvcurve.cpp   1.45
  M +4 -6      kstvector.cpp   1.83


--- kdeextragear-2/kst/kst/kstpsd.cpp  #1.3:1.4
@@ -269,5 +269,5 @@ KstObject::UpdateType KstPSD::update(int
     /* sum each bin into psd[] */
     psd[0] += _a[0];
-    psd[_PSDLen-1] += _a[1];
+    psd[_PSDLen-1] += fabs(_a[1]);
     for (i_samp=1; i_samp<_PSDLen-1; i_samp++) {
       psd[i_samp]+= cabs(_a[i_samp*2], _a[i_samp*2+1]);

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.82:1.83
@@ -376,8 +374,8 @@ KstObject::UpdateType KstVector::update(
             min = v;
           }
+        }
           if (v < minpos && v > 0) {
               minpos = v;
           }
-        }
       } else {
         _is_rising = false;





More information about the Kst mailing list