yat  0.14.5pre
Kendall.h
1 #ifndef _theplu_yat_statistics_kendall_
2 #define _theplu_yat_statistics_kendall_
3 
4 // $Id: Kendall.h 2766 2012-07-10 12:54:22Z peter $
5 
6 /*
7  Copyright (C) 2011, 2012 Peter Johansson
8 
9  This file is part of the yat library, http://dev.thep.lu.se/yat
10 
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 3 of the
14  License, or (at your option) any later version.
15 
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with yat. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 #include <cstddef>
26 
27 namespace theplu {
28 namespace yat {
29 namespace statistics {
30 
34  class Kendall
35  {
36  public:
40  Kendall(void);
41 
45  Kendall(const Kendall& other);
46 
50  virtual ~Kendall(void);
51 
55  void add(double x, double y);
56 
60  size_t n(void) const;
61 
71  double p_left(bool exact=false) const;
72 
95  double p_right(bool exact=false) const;
96 
100  double p_value(bool exact=false) const;
101 
105  void reset(void);
106 
117  double score(void) const;
118 
122  Kendall& operator=(const Kendall& rhs);
123  private:
124  class Pimpl;
125  Pimpl* pimpl_;
126  };
127 
128 }}} // of namespace statistics, yat, and theplu
129 #endif
Kendall & operator=(const Kendall &rhs)
assignment operator
double score(void) const
Kendall&#39;s tau.
void add(double x, double y)
add pair of data
double p_left(bool exact=false) const
Lower one-sided p-value.
virtual ~Kendall(void)
Destructor.
double p_value(bool exact=false) const
Two-sided p-value.
double p_right(bool exact=false) const
Upper one-sided p-value.
Kendall&#39;s tau rank coefficient.
Definition: Kendall.h:34

Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5