yat  0.21pre
Kendall.h
1 #ifndef _theplu_yat_statistics_kendall_
2 #define _theplu_yat_statistics_kendall_
3 
4 // $Id: Kendall.h 4089 2021-09-07 00:56:40Z peter $
5 
6 /*
7  Copyright (C) 2011, 2012, 2021 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  Kendall(Kendall&& other);
51 
55  virtual ~Kendall(void);
56 
60  void add(double x, double y);
61 
65  size_t n(void) const;
66 
76  double p_left(bool exact=false) const;
77 
100  double p_right(bool exact=false) const;
101 
105  double p_value(bool exact=false) const;
106 
110  void reset(void);
111 
122  double score(void) const;
123 
127  Kendall& operator=(const Kendall& rhs);
128 
132  Kendall& operator=(Kendall&& rhs);
133  private:
134  class Pimpl;
135  Pimpl* pimpl_;
136  };
137 
138 }}} // of namespace statistics, yat, and theplu
139 #endif
Kendall & operator=(const Kendall &rhs)
assignment operator
The Department of Theoretical Physics namespace as we define it.
void add(double x, double y)
add pair of data
virtual ~Kendall(void)
Destructor.
double p_left(bool exact=false) const
Lower one-sided p-value.
double p_right(bool exact=false) const
Upper one-sided p-value.
double score(void) const
Kendall&#39;s tau.
double p_value(bool exact=false) const
Two-sided p-value.
Kendall&#39;s tau rank coefficient.
Definition: Kendall.h:34

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14