MinMaxMeanStatisticProcess.cc
5.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/*
* MinMaxMeanStatisticProcess.cc
*
* Created on: Nov 06, 2014
* Author: AKKA
*/
#include "MinMaxMeanStatisticProcess.hh"
#include "MinMaxMeanStatistic.hh"
namespace AMDA {
namespace Statistic {
namespace MinMaxMean {
MinStatisticProcess::MinStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false, index)
{
}
MinStatisticProcess::~MinStatisticProcess(void)
{
}
void MinStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateMinStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MIN);
_operation = lCreateMinStatistic.getStatisticOperation();
}
std::string MinStatisticProcess::getUCD(void)
{
return "stat.min";
}
MaxStatisticProcess::MaxStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false, index)
{
}
MaxStatisticProcess::~MaxStatisticProcess(void)
{
}
void MaxStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateMaxStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MAX);
_operation = lCreateMaxStatistic.getStatisticOperation();
}
std::string MaxStatisticProcess::getUCD(void)
{
return "stat.max";
}
MeanStatisticProcess::MeanStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
MeanStatisticProcess::~MeanStatisticProcess(void)
{
}
void MeanStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateMeanStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MEAN);
_operation = lCreateMeanStatistic.getStatisticOperation();
}
std::string MeanStatisticProcess::getUCD(void)
{
return "stat.mean";
}
RMSStatisticProcess::RMSStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
RMSStatisticProcess::~RMSStatisticProcess(void)
{
}
void RMSStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateRMSStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_RMS);
_operation = lCreateRMSStatistic.getStatisticOperation();
}
std::string RMSStatisticProcess::getUCD(void)
{
return "stat.RMS";
}
MedianStatisticProcess::MedianStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
MedianStatisticProcess::~MedianStatisticProcess(void)
{
}
void MedianStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateMedianStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_MEDIAN);
_operation = lCreateMedianStatistic.getStatisticOperation();
}
std::string MedianStatisticProcess::getUCD(void)
{
return "stat.median";
}
VarianceStatisticProcess::VarianceStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
VarianceStatisticProcess::~VarianceStatisticProcess(void)
{
}
void VarianceStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateVarianceStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_VARIANCE);
_operation = lCreateVarianceStatistic.getStatisticOperation();
}
std::string VarianceStatisticProcess::getUCD(void)
{
return "stat.variance";
}
SkewnessStatisticProcess::SkewnessStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
SkewnessStatisticProcess::~SkewnessStatisticProcess(void)
{
}
void SkewnessStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateSkewnessStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_SKEWNESS);
_operation = lCreateSkewnessStatistic.getStatisticOperation();
}
std::string SkewnessStatisticProcess::getUCD(void)
{
return "stat.skewness";
}
KurtosisStatisticProcess::KurtosisStatisticProcess(AMDA::Parameters::Parameter ¶meter, const int& index) :
AMDA::Parameters::StatisticProcess(parameter, false,index)
{
}
KurtosisStatisticProcess::~KurtosisStatisticProcess(void)
{
}
void KurtosisStatisticProcess::createOperation(void)
{
AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
CreateMinMaxMeanStatistic lCreateKurtosisStatistic( *this, _timeIntervalList, *paramInput, FUNC_TYPE::FT_KURTOSIS);
_operation = lCreateKurtosisStatistic.getStatisticOperation();
}
std::string KurtosisStatisticProcess::getUCD(void)
{
return "stat.kurtosis";
}
} /* namespace MinMaxMean */
} /* namespace Statistic */
} /* namespace AMDA */