-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDataProcessor.h
54 lines (43 loc) · 1.02 KB
/
DataProcessor.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
46
47
48
49
50
51
52
53
/*
* File: Preprocessor.h
* Author: heshan
*
* Created on April 20, 2018, 8:00 PM
*/
#ifndef DATAPROCESSOR_H
#define DATAPROCESSOR_H
#include <vector>
class DataProcessor {
public:
DataProcessor();
DataProcessor(const DataProcessor& orig);
virtual ~DataProcessor();
/**
* normalize the given vector
* @param vec vector
* @param vecType vector type input or output
* @return normalized vector
*/
std::vector<double> process(std::vector<double> vec, int vecType);
/**
* post process the given vector
* @param vec vector
* @return processed vector
*/
std::vector<double> postprocess(std::vector<double> vec);
/**
* post process a given double
* @param val
* @return
*/
double postProcess(double val);
/**
* Print the given vector
* @param vec vector
* @return
*/
int printVector(std::vector<double> vec);
double out_magnitude;
private:
};
#endif /* DATAPROCESSOR_H */