yat  0.21pre
PoissonFitter.h
1 #ifndef theplu_yat_regression_detail_poisson_fitter
2 #define theplu_yat_regression_detail_poisson_fitter
3 
4 // $Id: PoissonFitter.h 3669 2017-07-27 07:42:09Z peter $
5 
6 /*
7  Copyright (C) 2017 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 #include <yat/utility/Vector.h>
27 
28 namespace theplu {
29 namespace yat {
30 namespace regression {
31 namespace detail {
32 
34 
35  class PoissonFitter
36  {
37  public:
38  PoissonFitter(const utility::Matrix& X, const utility::VectorBase& y,
39  utility::Vector& beta, utility::Matrix& covariance);
40  private:
41  double deviate(void) const;
42  void init(void);
43  utility::Vector& beta_;
44  utility::Matrix& covariance_;
45  const utility::Matrix& X_;
46  const utility::VectorBase& y_;
47  utility::Vector mu_;
48  utility::Vector eta_;
49  };
50 
52 
53 }}}}
54 
55 #endif
The Department of Theoretical Physics namespace as we define it.

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