source: trunk/src/Statistics.h @ 115

Last change on this file since 115 was 115, checked in by Peter, 19 years ago

added

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 649 bytes
Line 
1// $Id: Statistics.h 115 2004-07-19 14:38:43Z peter $
2
3#ifndef _theplu_cpptools_statistics_
4#define _theplu_cpptools_statistics_
5
6// C++ tools include
7/////////////////////
8
9// Standard C++ includes
10////////////////////////
11#include <vector>
12
13namespace theplu {
14namespace cpptools { 
15
16  ///
17  /// Class for basic statistics
18  ///   
19  class Statistics
20  {
21 
22  public:
23    ///
24    /// Constructor
25    ///
26    Statistics();
27
28    ///
29    /// @return median
30    ///
31    double median(std::vector<double>&); 
32
33    ///
34    /// @return \a i'th percentile
35    ///
36    double percentile(std::vector<double>&, double i);
37
38  private:
39   
40         
41  };
42
43}} // of namespace cpptools and namespace theplu
44
45#endif
46
Note: See TracBrowser for help on using the repository browser.