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

kcalc

  • sources
  • kde-4.14
  • kdeutils
  • kcalc
stats.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2001 - 2013 Evan Teran
3  evan.teran@gmail.com
4 
5 Copyright (C) 1996 - 2000 Bernd Johannes Wuebben
6  wuebben@kde.org
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of
11 the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef KSTATS_H_
23 #define KSTATS_H_
24 
25 #include <QVector>
26 #include "knumber.h"
27 
28 class KStats {
29 public:
30  KStats();
31  ~KStats();
32 
33 public:
34  void clearAll();
35  void enterData(const KNumber &data);
36  void clearLast();
37  KNumber sum() const;
38  KNumber sum_of_squares() const;
39  KNumber mean();
40  KNumber median();
41  KNumber std_kernel();
42  KNumber std();
43  KNumber sample_std();
44  int count() const;
45  bool error();
46 
47 private:
48  QVector<KNumber> data_;
49  bool error_flag_;
50 };
51 
52 #endif
53 
KStats::median
KNumber median()
Definition: stats.cpp:84
KStats::~KStats
~KStats()
Definition: stats.cpp:35
KStats
Definition: stats.h:28
KStats::count
int count() const
Definition: stats.cpp:196
KStats::error
bool error()
Definition: stats.cpp:205
KStats::sample_std
KNumber sample_std()
Definition: stats.cpp:178
KStats::enterData
void enterData(const KNumber &data)
Definition: stats.cpp:50
KStats::sum
KNumber sum() const
Definition: stats.cpp:69
KNumber
Definition: knumber.h:30
KStats::clearLast
void clearLast()
Definition: stats.cpp:58
KStats::KStats
KStats()
Definition: stats.cpp:28
QVector< KNumber >
KStats::std_kernel
KNumber std_kernel()
Definition: stats.cpp:118
KStats::sum_of_squares
KNumber sum_of_squares() const
Definition: stats.cpp:135
KStats::mean
KNumber mean()
Definition: stats.cpp:150
knumber.h
KStats::std
KNumber std()
Definition: stats.cpp:164
KStats::clearAll
void clearAll()
Definition: stats.cpp:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kcalc

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal