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

Last change on this file since 738 was 720, checked in by Jari Häkkinen, 16 years ago

Fixes #170. Almost all inlines removed, some classes have no cc file.

  • 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 720 2006-12-26 18:21:36Z jari $
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#include "yat/classifier/Target.h"
29
30#include <map>
31#include <string>
32#include <vector>
33
34namespace theplu {
35namespace yat {
36namespace microarray {
37
38  ///
39  /// @brief DataSet
40  ///
41  /// @note the interface of this class will most likely change.
42  ///
43  class DataSet
44  {
45  public:
46    ///
47    /// @brief Constructor
48    ///
49    DataSet(const classifier::MatrixLookup&, const classifier::Target&, 
50            const std::vector<std::string>&);
51
52    ///
53    /// Constructing a dataset that is a subset of @a data, namely the
54    /// probes overlapping @a data and @a probes.
55    ///
56    DataSet(const DataSet& data, const std::vector<std::string>& probes);
57
58    ///
59    /// @return data
60    ///
61    const classifier::MatrixLookup& data(void) const;
62
63    ///
64    /// @return probes
65    ///
66    const std::vector<std::string>& probe(void) const;
67
68    ///
69    /// @return target
70    ///
71    const classifier::Target& target(void) const;
72
73  private:
74    ///
75    /// @brief The copy constructor
76    ///
77    DataSet(const DataSet&);
78
79    ///
80    /// @brief The assignment operator
81    ///
82    DataSet& operator=(const DataSet&);
83
84    classifier::MatrixLookup data_;
85    std::vector<std::string> probe_;
86    const classifier::Target& target_;
87
88  };
89
90}}} // end of namespace utility, yat, and theplu
91
92
93#endif
Note: See TracBrowser for help on using the repository browser.