-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPreprocess.h
More file actions
75 lines (65 loc) · 2.11 KB
/
Preprocess.h
File metadata and controls
75 lines (65 loc) · 2.11 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
///////////////////////////////////////////////////////////
// Preprocess.h
// Implementation of the Class Preprocess
// Created on: 05-Vas-2014 17:36:45
// Original author: Povilas
///////////////////////////////////////////////////////////
#if !defined(PREPROCESS_H)
#define PREPROCESS_H
#include "ServeRequest.h"
#include <string>
/** \brief Implements all components described in Preprocessing gropup
*/
class Preprocess : public ServeRequest
{
public:
/** \brief Constructor
*
* \param InitDamisService* object which data mus be preprocessed
*/
Preprocess(InitDamisService*);
/** \brief Normalize data either by mean and std or by mapping to interval
*
* \param bool = true then normalize by mean and std, else map to interval
* \param double either mean or lbound value
* \param double either std of ubound value
* \return void
*
*/
void normData(bool, double, double);
/** \brief Function that performs data transpose
* \return void
*
*/
void transposeData();
/** \brief Function that performs data cleaning
* \return void
*
*/
void cleanData();
/** \brief Function that performs data splitting
*
* \param bool perform shufling
* \param double relative number of object in first set
* \param double relative number of objects in second set
* \return void
*
*/
void splitData(bool, double, double);
/** \brief Function that performs data filtering
*
* \param bool data part to return outliers or not
* \param double z value
* \param int attribute index acording to wich perform data filtering
* \return void
*
*/
void filterData(bool, double, int);
DamisFile *altOutFile;/**< Variable that holds alternative output path if needed (by default NULL) Only for methods that return two output files of data*/
/** \brief Destructor
*/
virtual ~Preprocess();
private:
std::vector<std::string> writeClass; /**< Variable that holds object classes to be written in output file */
};
#endif //!defined(PREPROCESS_H)