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

Last change on this file since 688 was 688, checked in by Peter, 16 years ago

Refs #150 Initial check-in of microarray::DataSet? class. This implementation is not as generic as it should be, but is more of a starting point for further discussion and ...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifndef _theplu_yat_microarray_dataset_
2#define _theplu_yat_microarray_dataset_
3// $Id: DataSet.h 688 2006-10-17 11:10:03Z peter $
4
5
6#include "yat/classifier/MatrixLookup.h"
7#include "yat/classifier/Target.h"
8
9#include <map>
10#include <string>
11#include <vector>
12
13namespace theplu {
14namespace yat {
15namespace microarray {
16
17  ///
18  /// @brief DataSet
19  ///
20  /// @note the interface of this class will most likely change.
21  ///
22  class DataSet
23  {
24  public:
25    ///
26    /// @brief Constructor
27    ///
28    DataSet(const classifier::MatrixLookup&, const classifier::Target&, 
29            const std::vector<std::string>&);
30
31    ///
32    /// Constructing a dataset that is a subset of @a data, namely the
33    /// probes overlapping @a data and @a probes.
34    ///
35    DataSet(const DataSet& data, const std::vector<std::string>& probes);
36
37    ///
38    /// @return probes
39    ///
40    inline const std::vector<std::string>& probe(void) const { return probe_; }
41
42    ///
43    /// @return target
44    ///
45    inline const classifier::Target& target(void) const { return target_; }
46
47    ///
48    /// @return data
49    ///
50    inline const classifier::MatrixLookup& data(void) const { return data_; }
51
52  private:
53    /// Copy Constructor
54    DataSet(const DataSet&);
55
56    /// Assignment operator
57    DataSet& operator=(const DataSet&);
58
59    classifier::MatrixLookup data_;
60    std::vector<std::string> probe_;
61    const classifier::Target& target_;
62
63  };
64
65}}} // end of namespace utility, yat, and theplu
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.