source: trunk/yat/microarray/DataSet.h @ 771

Last change on this file since 771 was 747, checked in by Peter, 15 years ago

replaced includes in header files with forward declarations when possible. Added some includes in cc files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#ifndef _theplu_yat_microarray_dataset_
2#define _theplu_yat_microarray_dataset_
3
4// $Id: DataSet.h 747 2007-02-11 13:26:41Z peter $
5
6/*
7  Copyright (C) The authors contributing to this file.
8
9  This file is part of the yat library, http://lev.thep.lu.se/trac/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 2 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 this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27#include "yat/classifier/MatrixLookup.h"
28
29#include <map>
30#include <string>
31#include <vector>
32
33namespace theplu {
34namespace yat {
35namespace classifier {
36  class Target;
37}
38namespace microarray {
39
40  ///
41  /// @brief DataSet
42  ///
43  /// @note the interface of this class will most likely change.
44  ///
45  class DataSet
46  {
47  public:
48    ///
49    /// @brief Constructor
50    ///
51    DataSet(const classifier::MatrixLookup&, const classifier::Target&, 
52            const std::vector<std::string>&);
53
54    ///
55    /// Constructing a dataset that is a subset of @a data, namely the
56    /// probes overlapping @a data and @a probes.
57    ///
58    DataSet(const DataSet& data, const std::vector<std::string>& probes);
59
60    ///
61    /// @return data
62    ///
63    const classifier::MatrixLookup& data(void) const;
64
65    ///
66    /// @return probes
67    ///
68    const std::vector<std::string>& probe(void) const;
69
70    ///
71    /// @return target
72    ///
73    const classifier::Target& target(void) const;
74
75  private:
76    ///
77    /// @brief The copy constructor
78    ///
79    DataSet(const DataSet&);
80
81    ///
82    /// @brief The assignment operator
83    ///
84    DataSet& operator=(const DataSet&);
85
86    classifier::MatrixLookup data_;
87    std::vector<std::string> probe_;
88    const classifier::Target& target_;
89
90  };
91
92}}} // end of namespace utility, yat, and theplu
93
94
95#endif
Note: See TracBrowser for help on using the repository browser.