00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef DATASET_H_
00019 #define DATASET_H_
00020
00021 #include <string>
00022 #include <vector>
00023
00024 class DataSetImpl;
00025
00026 class Dataset {
00027
00028 DataSetImpl* pimpl;
00029
00030 Dataset& operator=(const Dataset&);
00031 public:
00032
00033 Dataset();
00034 ~Dataset();
00035 Dataset(const Dataset&);
00036
00037 void load_data(std::string filename);
00038
00039 unsigned n_records() const;
00040 unsigned n_fields() const;
00041
00042 const std::vector<double>& get_inputs(unsigned record) const;
00043 double get_target(unsigned record) const;
00044
00045 std::vector<double> input_minima() const;
00046 std::vector<double> input_maxima() const;
00047
00048 };
00049
00050 #endif
00051