Bug 80519

Summary: statistics scalar mean is incorrect
Product: [Applications] kst Reporter: Matthew Truch <matt>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthew Truch 2004-04-27 23:11:51 UTC
Version:           0.98-devel (kst_oldview_branch) (using KDE Devel)
Installed from:    Compiled sources

Using KDE 3.1.0 with Qt 3.1.1, kst from CVS (kst_oldview_branch)

There is an error in the statistics code.  When looking at noisy, but otherwise flat data, the mean is clearly incorrect (it's larger than the max!).  

How to reproduce: Plot some data.  Look at the scalar statistical values (ie [V1-INDEX-Mean]).  The mean is incorrect (outside the min and max).  Some of the other values look suspect as well (Rms?, square?).  

Expected behavior: The statistics scalars display correct values.
Comment 1 Matthew Truch 2004-04-28 00:03:35 UTC
After a closer look, the statistics code is probably fine.  The error is in the number of samples (for reference, we are getting our data from BLAST style dirfiles, tested with both 'slow' and 'fast' data).  

In both cases (fast and slow), the mean can be made correct by assuming that the real number of samples is one greater than what is given with statistics [VECTOR-NS].  
Comment 2 Netterfield 2004-07-15 07:01:59 UTC
*** Bug has been marked as fixed ***.