Blame view

src/ExternLib/StatisticProcesses/MinMaxMeanStatisticProcess.cc 5.11 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * MinMaxMeanStatisticProcess.cc
 *
 *  Created on: Nov 06, 2014
 *      Author: AKKA
 */


#include "MinMaxMeanStatisticProcess.hh"

#include "MinMaxMeanStatistic.hh"

namespace AMDA {
namespace Statistic {
namespace MinMaxMean {

a4698d47   Benjamin Renard   Fix StatisticProc...
17
MinStatisticProcess::MinStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
fbe3c2bb   Benjamin Renard   First commit
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
		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";
}

a4698d47   Benjamin Renard   Fix StatisticProc...
38
MaxStatisticProcess::MaxStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
fbe3c2bb   Benjamin Renard   First commit
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
		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";
}

a4698d47   Benjamin Renard   Fix StatisticProc...
59
MeanStatisticProcess::MeanStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
fbe3c2bb   Benjamin Renard   First commit
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
		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";
}

6f170ffb   Hacene SI HADJ MOHAND   Ok rms
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
RMSStatisticProcess::RMSStatisticProcess(AMDA::Parameters::Parameter &parameter, 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";
}

65af22fe   Hacene SI HADJ MOHAND   ok for median var...
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
MedianStatisticProcess::MedianStatisticProcess(AMDA::Parameters::Parameter &parameter, 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 &parameter, 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";
}

1d0339b8   Hacene SI HADJ MOHAND   Ok pour skewness ...
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

SkewnessStatisticProcess::SkewnessStatisticProcess(AMDA::Parameters::Parameter &parameter, 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 &parameter, 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";
}

fbe3c2bb   Benjamin Renard   First commit
186
187
188
} /* namespace MinMaxMean */
} /* namespace Statistic */
} /* namespace AMDA */