source: trunk/src/Score.h @ 112

Last change on this file since 112 was 112, checked in by Peter, 18 years ago

added the choice to not use all data points but just the train_set

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 716 bytes
Line 
1// $Id: Score.h 112 2004-07-07 10:23:44Z peter $
2
3#ifndef _theplu_cpptools_score_
4#define _theplu_cpptools_score_
5
6#include "vector.h"
7
8namespace theplu {
9namespace cpptools {
10
11  ///
12  ///Virtual Class calculating a score and the corresponding p-value.
13  ///
14  class Score
15  {
16   
17  public:
18    ///
19    ///   Constructor
20    ///   
21    Score(void) {};
22   
23   
24    ///
25    ///   Destructor
26    ///
27    virtual ~Score(void) {};
28   
29    virtual double 
30    score(const gslapi::vector&, 
31          const gslapi::vector&,
32          const std::vector<size_t>& = std::vector<size_t>()) = 0; 
33 
34    virtual double p_value() = 0; 
35   
36  private:
37    gslapi::vector data_;   
38    gslapi::vector target_;
39
40  }; // class Score
41
42}} // of namespace cpptools and namespace theplu
43
44#endif
Note: See TracBrowser for help on using the repository browser.