yat  0.15.2pre
Poisson.h
1 #ifndef theplu_yat_regression_poisson
2 #define theplu_yat_regression_poisson
3 
4 // $Id: Poisson.h 3662 2017-07-19 01:53:55Z 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 "Multivariate.h"
26 
27 #include "yat/utility/Matrix.h"
28 #include "yat/utility/Vector.h"
29 
30 namespace theplu {
31 namespace yat {
32 namespace regression {
33 
44  class Poisson : public Multivariate
45  {
46  public:
50  const utility::Matrix& covariance(void);
51 
55  void fit(const utility::Matrix& x, const utility::VectorBase& y);
56 
62  const utility::Vector& fit_parameters(void) const;
63 
68  double predict(const utility::VectorBase& x) const;
69  private:
70  utility::Vector beta_;
71  utility::Matrix covariance_;
72  };
73 
74 }}}
75 
76 #endif
void fit(const utility::Matrix &x, const utility::VectorBase &y)
fit model
The Department of Theoretical Physics namespace as we define it.
double predict(const utility::VectorBase &x) const
This is the yat interface to GSL vector.
Definition: Vector.h:59
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
const utility::Vector & fit_parameters(void) const
Interface to GSL matrix.
Definition: Matrix.h:74
const utility::Matrix & covariance(void)
Covariance of fit parameters.
Definition: Multivariate.h:39
Definition: Poisson.h:44

Generated on Fri Jul 13 2018 02:33:27 for yat by  doxygen 1.8.11