yat  0.10.4pre
PearsonCorrelation.h
1 #ifndef _theplu_yat_statistics_pearson_correlation_
2 #define _theplu_yat_statistics_pearson_correlation_
3 
4 // $Id: PearsonCorrelation.h 2119 2009-12-12 23:11:43Z peter $
5 
6 /*
7  Copyright (C) 2004, 2005 Peter Johansson
8  Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
9  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
10  Copyright (C) 2009 Peter Johansson
11 
12  This file is part of the yat library, http://dev.thep.lu.se/yat
13 
14  The yat library is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License as
16  published by the Free Software Foundation; either version 3 of the
17  License, or (at your option) any later version.
18 
19  The yat library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with yat. If not, see <http://www.gnu.org/licenses/>.
26 */
27 
28 #include "AveragerPairWeighted.h"
29 
30 namespace theplu {
31 namespace yat {
32 namespace statistics {
33 
38  {
39  public:
43  PearsonCorrelation(void);
44 
48  virtual ~PearsonCorrelation(void);
49 
50 
54  void add(double value, bool target, double weight=1.0);
55 
63  double score(void) const;
64 
78  double p_value_one_sided() const;
79 
80  private:
82 
83  };
84 
85 }}} // of namespace statistics, yat, and theplu
86 
87 #endif

Generated on Mon Nov 11 2013 09:41:44 for yat by  doxygen 1.8.1