Blame view

src/ExternLib/StatisticProcesses/CountStatisticProcess.cc 1.74 KB
4b695af7   Hacene SI HADJ MOHAND   tested ok
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
#include "CountStatisticProcess.hh"

#include "CountStatistic.hh"

namespace AMDA {
    namespace Statistic {
        namespace Count {

            CountStatisticProcess::CountStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
            AMDA::Parameters::StatisticProcess(parameter, false, index) {
            }

            CountStatisticProcess::~CountStatisticProcess(void) {
            }

            void CountStatisticProcess::createOperation(void) {
                AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
                CreateCountStatistic lCreateCountStatistic(*this, _timeIntervalList, *paramInput, COUNT_FUNC_TYPE::FT_COUNT);
                _operation = lCreateCountStatistic.getStatisticOperation();
            }

            std::string CountStatisticProcess::getUCD(void) {
                return "stat.count";
            }
            
                        CountNotNanStatisticProcess::CountNotNanStatisticProcess(AMDA::Parameters::Parameter &parameter, const int& index) :
            AMDA::Parameters::StatisticProcess(parameter, false, index) {
            }

            CountNotNanStatisticProcess::~CountNotNanStatisticProcess(void) {
            }

            void CountNotNanStatisticProcess::createOperation(void) {
                AMDA::Parameters::ParamData *paramInput = _parameter.getParamData(this).get();
                CreateCountStatistic lCreateCountStatistic(*this, _timeIntervalList, *paramInput, COUNT_FUNC_TYPE::FT_COUNT_NOT_NAN);
                _operation = lCreateCountStatistic.getStatisticOperation();
            }

            std::string CountNotNanStatisticProcess::getUCD(void) {
                return "stat.countNotNan";
            }

        }
    }
}