-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataset.h
45 lines (40 loc) · 1.07 KB
/
Dataset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef Dataset_H_
#define Dataset_H_
#include <iostream>
#include "Record.h"
#include <vector>
using namespace std;
class Dataset
{
private:
vector<vector<string> > dataset_ar;
vector<vector< double> > convertToMatrix;
int _m,_n;
int userInput;
public:
Dataset();
// Dataset(vector<vector<string>> dataset_ar1);
Dataset(string filename);
~Dataset();
Dataset(const Dataset&);
void convert(int n);
// void getInput(string filename);
//getters
vector<vector<string>> get_dataset_ar()
{
return dataset_ar;
}
vector<vector<double> > & getMatrix() {return convertToMatrix;}
vector<Record> get_vector_record()
{
vector<Record> record_Ar;
for (int i = 0; i < dataset_ar.size(); i ++)
{
Record temp_record(dataset_ar[i]);
record_Ar.push_back(temp_record);
}
return record_Ar;
}
int getUserInput() {return userInput;}
};
#endif