SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Statistics.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2011 Heiko Strathmann
8  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9  *
10  * ALGLIB Copyright 1984, 1987, 1995, 2000 by Stephen L. Moshier under GPL2+
11  * http://www.alglib.net/
12  * See method comments which functions are taken from ALGLIB (with adjustments
13  * for shogun)
14  */
15 
16 #ifndef __STATISTICS_H_
17 #define __STATISTICS_H_
18 
19 #include <shogun/base/SGObject.h>
20 
21 namespace shogun
22 {
23 
27 class CStatistics: public CSGObject
28 {
29 
30 public:
31 
37  static float64_t mean(SGVector<float64_t> values);
38 
44  static float64_t variance(SGVector<float64_t> values);
45 
52 
68  float64_t alpha, float64_t& conf_int_low, float64_t& conf_int_up);
69 
83  static float64_t student_t_distribution(int32_t k, float64_t t);
84 
93 
105 
115  float64_t y);
116 
133 
135  inline virtual const char* get_name() const
136  {
137  return "Statistics";
138  }
139 
140 protected:
148  float64_t x, float64_t maxgam);
149 
155  float64_t x, float64_t big, float64_t biginv);
156 
162  float64_t x, float64_t big, float64_t biginv);
163 };
164 
165 }
166 
167 #endif /* __STATISTICS_H_ */

SHOGUN Machine Learning Toolbox - Documentation