yat  0.12.3pre
PearsonCorrelation.h
1 #ifndef _theplu_yat_statistics_pearson_correlation_
2 #define _theplu_yat_statistics_pearson_correlation_
3 
4 // $Id: PearsonCorrelation.h 3114 2013-11-10 23:51:47Z 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, 2013 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 #include "yat/utility/deprecate.h"
31 
32 namespace theplu {
33 namespace yat {
34 namespace statistics {
35 
40  {
41  public:
45  PearsonCorrelation(void);
46 
50  virtual ~PearsonCorrelation(void);
51 
55  void add(double value, bool target, double weight=1.0);
56 
64  double score(void) const;
65 
70  double p_value_one_sided(void) const YAT_DEPRECATE;
71 
78  double p_left(void) const;
79 
93  double p_right(void) const;
94 
103  double p_value(void) const;
104 
105  private:
107  };
108 
109 }}} // of namespace statistics, yat, and theplu
110 #endif
virtual ~PearsonCorrelation(void)
The destructor.
Class for taking care of mean and covariance of two variables in a weighted manner.
Definition: AveragerPairWeighted.h:56
double score(void) const
correlation
Class for calculating Pearson correlation.
Definition: PearsonCorrelation.h:39
PearsonCorrelation(void)
The default constructor.
void add(double value, bool target, double weight=1.0)

Generated on Mon Jun 1 2015 12:29:52 for yat by  doxygen 1.8.5