• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kcalc

stats.h

Go to the documentation of this file.
00001 /*
00002     $Id: stats.h 490227 2005-12-21 07:04:26Z scripty $
00003 
00004     KCalc, a scientific calculator for the X window system using the
00005     Qt widget libraries, available at no cost at http://www.troll.no
00006    
00007     Copyright (C) 1996 Bernd Johannes Wuebben
00008                        wuebben@math.cornell.edu
00009     
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU General Public License for more details.
00019 
00020     You should have received a copy of the GNU General Public License
00021     along with this program; if not, write to the Free Software
00022     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00023 
00024 */
00025 
00026 #ifndef KSTATS_H
00027 #define KSTATS_H
00028 
00029 #include <QVector>
00030 #include "knumber.h"
00031 
00032 class KStats {
00033 
00034 public:
00035     KStats();
00036     ~KStats();
00037 
00038 public:
00039     void clearAll();
00040     void enterData(const KNumber & data);
00041     void clearLast();
00042     KNumber sum();
00043     KNumber sum_of_squares();
00044     KNumber mean();
00045     KNumber median();
00046     KNumber std_kernel();
00047     KNumber std();
00048     KNumber sample_std();
00049     int count() const;
00050     bool     error();
00051 
00052 private:
00053     QVector<KNumber> mData;
00054     bool error_flag;
00055 
00056 };
00057 
00058 
00059 #endif /*KSTATS_H*/
00060 

kcalc

Skip menu "kcalc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal