[Kst] [Bug 121566] New: rms scalar is wrong

Enzo Pascale enzo at physics.utoronto.ca
Wed Feb 8 01:10:53 CET 2006


------- 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=121566         
           Summary: rms scalar is wrong
           Product: kst
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: enzo physics utoronto ca


Version:           1.2.0_svn_489756 (using KDE 3.3.2,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-13)
OS:                Linux (i686) release 2.6.8-2-686-smp

in
void KstVector::updateScalars()

it is

_scalars["sigma"]->setValue(sumsq = sqrt((_scalars["sumsquared"]->value() - sum * sum / double(_nsum)) / double(_nsum-1)));
_scalars["rms"]->setValue(sqrt(sumsq/double(_nsum)));


it should be
_scalars["rms"]->setValue(sqrt(_scalars["sumsquared"]->value()/double(_nsum)));


More information about the Kst mailing list