yat  0.21pre
LikelihoodRatioTestBinomial.h
1 #ifndef _theplu_yat_statistics_loglikelihood_ratio_test_binomial
2 #define _theplu_yat_statistics_loglikelihood_ratio_test_binomial
3 
4 // $Id: LikelihoodRatioTestBinomial.h 3138 2013-11-29 02:07:58Z peter $
5 
6 /*
7  Copyright (C) 2013 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 "yat/utility/Matrix.h"
26 
27 namespace theplu {
28 namespace yat {
29 namespace statistics {
30 
39  {
40  public:
46 
53  void add(size_t population, bool positive, long int n=1);
54 
58  unsigned long int n(void) const;
59 
63  unsigned long int n(size_t i) const;
64 
68  unsigned long int negative(void) const;
69 
73  unsigned long int negative(size_t i) const;
74 
78  unsigned long int positive(void) const;
79 
83  unsigned long int positive(size_t i) const;
84 
88  size_t size(void) const;
89 
100  double llr(void) const;
101 
102  private:
103  utility::Matrix count_;
104  };
105 
106 }}} // of namespace theplu yat statistics
107 
108 #endif
The Department of Theoretical Physics namespace as we define it.
void add(size_t population, bool positive, long int n=1)
add one data point
double llr(void) const
Calculate natural logarithm of likelihood ratios.
Interface to GSL matrix.
Definition: Matrix.h:104
Likelihood-ratio test for binomial data.
Definition: LikelihoodRatioTestBinomial.h:38

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