yat  0.21pre
Multivariate.h
1 #ifndef theplu_yat_regression_multivariate
2 #define theplu_yat_regression_multivariate
3 
4 // $Id: Multivariate.h 4207 2022-08-26 04:36:28Z peter $
5 
6 /*
7  Copyright (C) 2017, 2021, 2022 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 namespace theplu {
26 namespace yat {
27 namespace utility {
28  class Matrix;
29  class MatrixBase;
30  class Vector;
31  class VectorBase;
32 }
33 namespace regression {
34 
44  {
45  public:
49  virtual ~Multivariate(void);
50 
57  virtual void fit(const utility::Matrix& x, const utility::VectorBase& y)=0;
58 
72  virtual void fit2(const utility::MatrixBase& x,
73  const utility::VectorBase& y);
74 
78  virtual const utility::Vector& fit_parameters(void) const=0;
79 
83  virtual double predict(const utility::VectorBase& x) const=0;
84  };
85 
86 }}}
87 
88 #endif
Definition: MatrixBase.h:54
The Department of Theoretical Physics namespace as we define it.
virtual void fit(const utility::Matrix &x, const utility::VectorBase &y)=0
virtual double predict(const utility::VectorBase &x) const =0
predict value in x according to model
This is the yat interface to GSL vector.
Definition: Vector.h:59
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
virtual const utility::Vector & fit_parameters(void) const =0
Interface to GSL matrix.
Definition: Matrix.h:104
virtual ~Multivariate(void)
destructor
Definition: Multivariate.h:43
virtual void fit2(const utility::MatrixBase &x, const utility::VectorBase &y)

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