From ff88453dce1dcd8780fc8cc73658aeefb8d22170 Mon Sep 17 00:00:00 2001 From: Furkan Date: Tue, 22 Nov 2022 14:18:22 +0100 Subject: [PATCH] 10765 - Done. --- src/ExternLib/StatisticProcesses/CountBoolStatistic.hh | 2 +- src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ExternLib/StatisticProcesses/CountBoolStatistic.hh b/src/ExternLib/StatisticProcesses/CountBoolStatistic.hh index dd7f0a0..297ea77 100644 --- a/src/ExternLib/StatisticProcesses/CountBoolStatistic.hh +++ b/src/ExternLib/StatisticProcesses/CountBoolStatistic.hh @@ -92,7 +92,7 @@ namespace AMDA { return; } if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = 0; + StatisticOperation::_resultData._result = NAN; ++StatisticOperation::_resultData._nbDataProcessed; if (isNAN(a) || a != AMDA::Parameters::LogicalData::True) return; diff --git a/src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh b/src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh index c68cc60..60e7b1b 100644 --- a/src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh +++ b/src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh @@ -185,7 +185,7 @@ namespace AMDA { return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a; + StatisticOperation::_resultData._result = NAN; else if (a < StatisticOperation::_resultData._result) StatisticOperation::_resultData._result = a; ++StatisticOperation::_resultData._nbDataProcessed; @@ -212,7 +212,7 @@ namespace AMDA { continue; if (isNAN(StatisticOperation::_resultData[i]._result)) - StatisticOperation::_resultData[i]._result = a[i]; + StatisticOperation::_resultData[i]._result = NAN; else if (a[i] < StatisticOperation::_resultData[i]._result) StatisticOperation::_resultData[i]._result = a[i]; ++StatisticOperation::_resultData[i]._nbDataProcessed; @@ -225,7 +225,7 @@ namespace AMDA { return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a; + StatisticOperation::_resultData._result = NAN; else if (a > StatisticOperation::_resultData._result) StatisticOperation::_resultData._result = a; ++StatisticOperation::_resultData._nbDataProcessed; @@ -253,7 +253,7 @@ namespace AMDA { continue; if (isNAN(StatisticOperation::_resultData[i]._result)) - StatisticOperation::_resultData[i]._result = a[i]; + StatisticOperation::_resultData[i]._result = NAN; else if (a[i] > StatisticOperation::_resultData[i]._result) StatisticOperation::_resultData[i]._result = a[i]; ++StatisticOperation::_resultData[i]._nbDataProcessed; @@ -266,7 +266,7 @@ namespace AMDA { return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a; + StatisticOperation::_resultData._result = NAN; else StatisticOperation::_resultData._result = StatisticOperation::_resultData._result + a; ++StatisticOperation::_resultData._nbDataProcessed; @@ -294,7 +294,7 @@ namespace AMDA { continue; if (isNAN(StatisticOperation::_resultData[i]._result)) - StatisticOperation::_resultData[i]._result = a[i]; + StatisticOperation::_resultData[i]._result = NAN; else StatisticOperation::_resultData[i]._result = StatisticOperation::_resultData[i]._result + a[i]; ++StatisticOperation::_resultData[i]._nbDataProcessed; @@ -307,7 +307,7 @@ namespace AMDA { return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a * a; + StatisticOperation::_resultData._result = NAN; else StatisticOperation::_resultData._result = StatisticOperation::_resultData._result + a*a; ++StatisticOperation::_resultData._nbDataProcessed; @@ -335,7 +335,7 @@ namespace AMDA { continue; if (isNAN(StatisticOperation::_resultData[i]._result)) - StatisticOperation::_resultData[i]._result = a[i] * a[i]; + StatisticOperation::_resultData[i]._result = NAN; else StatisticOperation::_resultData[i]._result = StatisticOperation::_resultData[i]._result + a[i] * a[i]; ++StatisticOperation::_resultData[i]._nbDataProcessed; @@ -347,7 +347,7 @@ namespace AMDA { if (isNAN(a)) return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a; + StatisticOperation::_resultData._result = NAN; _dataList.push_back(a); } @@ -392,7 +392,7 @@ namespace AMDA { if (isNAN(a)) return; if (isNAN(StatisticOperation::_resultData._result)) - StatisticOperation::_resultData._result = a; + StatisticOperation::_resultData._result = NAN; _timeDataList.push_back(std::make_pair(time, a)); } -- libgit2 0.21.2