yat  0.21pre
Pearson.h
1 #ifndef _theplu_yat_statistics_pearson_
2 #define _theplu_yat_statistics_pearson_
3 
4 // $Id: Pearson.h 4207 2022-08-26 04:36:28Z peter $
5 
6 /*
7  Copyright (C) 2004, 2005 Peter Johansson
8  Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
9  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
10  Copyright (C) 2022 Peter Johansson
11 
12  This file is part of the yat library, http://dev.thep.lu.se/yat
13 
14  The yat library is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License as
16  published by the Free Software Foundation; either version 3 of the
17  License, or (at your option) any later version.
18 
19  The yat library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with yat. If not, see <http://www.gnu.org/licenses/>.
26 */
27 
28 #include "Score.h"
29 
30 namespace theplu {
31 namespace yat {
32 namespace utility {
33  class VectorBase;
34 }
35 namespace statistics {
36 
40 
41  class Pearson : public Score
42  {
43  public:
47  Pearson(bool absolute=true);
48 
52  virtual ~Pearson(void);
53 
54 
61  double score(const classifier::Target& target,
62  const utility::VectorBase& value) const;
63 
73  double score(const classifier::Target& target,
74  const classifier::DataLookupWeighted1D& value) const;
75 
85  double score(const classifier::Target& target,
86  const utility::VectorBase& value,
87  const utility::VectorBase& weight) const;
88 
89  };
90 
91 }}} // of namespace statistics, yat, and theplu
92 
93 #endif
Pearson(bool absolute=true)
The default constructor.
Class for containing sample labels.
Definition: Target.h:47
double score(const classifier::Target &target, const utility::VectorBase &value) const
The Department of Theoretical Physics namespace as we define it.
Class for calculating Pearson correlation.
Definition: Pearson.h:41
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
Interface Class for score classes.
Definition: Score.h:43
void absolute(bool absolute)
Function changing mode of Score.
virtual ~Pearson(void)
The destructor.
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43

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