Commit ff88453dce1dcd8780fc8cc73658aeefb8d22170
1 parent
b8247aee
Exists in
FER_10765
10765 - Done.
Showing
2 changed files
with
11 additions
and
11 deletions
Show diff stats
src/ExternLib/StatisticProcesses/CountBoolStatistic.hh
@@ -92,7 +92,7 @@ namespace AMDA { | @@ -92,7 +92,7 @@ namespace AMDA { | ||
92 | return; | 92 | return; |
93 | } | 93 | } |
94 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 94 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
95 | - StatisticOperation<TResultData>::_resultData._result = 0; | 95 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
96 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; | 96 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; |
97 | if (isNAN(a) || a != AMDA::Parameters::LogicalData::True) | 97 | if (isNAN(a) || a != AMDA::Parameters::LogicalData::True) |
98 | return; | 98 | return; |
src/ExternLib/StatisticProcesses/MinMaxMeanStatistic.hh
@@ -185,7 +185,7 @@ namespace AMDA { | @@ -185,7 +185,7 @@ namespace AMDA { | ||
185 | return; | 185 | return; |
186 | 186 | ||
187 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 187 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
188 | - StatisticOperation<TResultData>::_resultData._result = a; | 188 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
189 | else if (a < StatisticOperation<TResultData>::_resultData._result) | 189 | else if (a < StatisticOperation<TResultData>::_resultData._result) |
190 | StatisticOperation<TResultData>::_resultData._result = a; | 190 | StatisticOperation<TResultData>::_resultData._result = a; |
191 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; | 191 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; |
@@ -212,7 +212,7 @@ namespace AMDA { | @@ -212,7 +212,7 @@ namespace AMDA { | ||
212 | continue; | 212 | continue; |
213 | 213 | ||
214 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) | 214 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) |
215 | - StatisticOperation<TResultData>::_resultData[i]._result = a[i]; | 215 | + StatisticOperation<TResultData>::_resultData[i]._result = NAN; |
216 | else if (a[i] < StatisticOperation<TResultData>::_resultData[i]._result) | 216 | else if (a[i] < StatisticOperation<TResultData>::_resultData[i]._result) |
217 | StatisticOperation<TResultData>::_resultData[i]._result = a[i]; | 217 | StatisticOperation<TResultData>::_resultData[i]._result = a[i]; |
218 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; | 218 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; |
@@ -225,7 +225,7 @@ namespace AMDA { | @@ -225,7 +225,7 @@ namespace AMDA { | ||
225 | return; | 225 | return; |
226 | 226 | ||
227 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 227 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
228 | - StatisticOperation<TResultData>::_resultData._result = a; | 228 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
229 | else if (a > StatisticOperation<TResultData>::_resultData._result) | 229 | else if (a > StatisticOperation<TResultData>::_resultData._result) |
230 | StatisticOperation<TResultData>::_resultData._result = a; | 230 | StatisticOperation<TResultData>::_resultData._result = a; |
231 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; | 231 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; |
@@ -253,7 +253,7 @@ namespace AMDA { | @@ -253,7 +253,7 @@ namespace AMDA { | ||
253 | continue; | 253 | continue; |
254 | 254 | ||
255 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) | 255 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) |
256 | - StatisticOperation<TResultData>::_resultData[i]._result = a[i]; | 256 | + StatisticOperation<TResultData>::_resultData[i]._result = NAN; |
257 | else if (a[i] > StatisticOperation<TResultData>::_resultData[i]._result) | 257 | else if (a[i] > StatisticOperation<TResultData>::_resultData[i]._result) |
258 | StatisticOperation<TResultData>::_resultData[i]._result = a[i]; | 258 | StatisticOperation<TResultData>::_resultData[i]._result = a[i]; |
259 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; | 259 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; |
@@ -266,7 +266,7 @@ namespace AMDA { | @@ -266,7 +266,7 @@ namespace AMDA { | ||
266 | return; | 266 | return; |
267 | 267 | ||
268 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 268 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
269 | - StatisticOperation<TResultData>::_resultData._result = a; | 269 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
270 | else | 270 | else |
271 | StatisticOperation<TResultData>::_resultData._result = StatisticOperation<TResultData>::_resultData._result + a; | 271 | StatisticOperation<TResultData>::_resultData._result = StatisticOperation<TResultData>::_resultData._result + a; |
272 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; | 272 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; |
@@ -294,7 +294,7 @@ namespace AMDA { | @@ -294,7 +294,7 @@ namespace AMDA { | ||
294 | continue; | 294 | continue; |
295 | 295 | ||
296 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) | 296 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) |
297 | - StatisticOperation<TResultData>::_resultData[i]._result = a[i]; | 297 | + StatisticOperation<TResultData>::_resultData[i]._result = NAN; |
298 | else | 298 | else |
299 | StatisticOperation<TResultData>::_resultData[i]._result = StatisticOperation<TResultData>::_resultData[i]._result + a[i]; | 299 | StatisticOperation<TResultData>::_resultData[i]._result = StatisticOperation<TResultData>::_resultData[i]._result + a[i]; |
300 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; | 300 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; |
@@ -307,7 +307,7 @@ namespace AMDA { | @@ -307,7 +307,7 @@ namespace AMDA { | ||
307 | return; | 307 | return; |
308 | 308 | ||
309 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 309 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
310 | - StatisticOperation<TResultData>::_resultData._result = a * a; | 310 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
311 | else | 311 | else |
312 | StatisticOperation<TResultData>::_resultData._result = StatisticOperation<TResultData>::_resultData._result + a*a; | 312 | StatisticOperation<TResultData>::_resultData._result = StatisticOperation<TResultData>::_resultData._result + a*a; |
313 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; | 313 | ++StatisticOperation<TResultData>::_resultData._nbDataProcessed; |
@@ -335,7 +335,7 @@ namespace AMDA { | @@ -335,7 +335,7 @@ namespace AMDA { | ||
335 | continue; | 335 | continue; |
336 | 336 | ||
337 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) | 337 | if (isNAN(StatisticOperation<TResultData>::_resultData[i]._result)) |
338 | - StatisticOperation<TResultData>::_resultData[i]._result = a[i] * a[i]; | 338 | + StatisticOperation<TResultData>::_resultData[i]._result = NAN; |
339 | else | 339 | else |
340 | StatisticOperation<TResultData>::_resultData[i]._result = StatisticOperation<TResultData>::_resultData[i]._result + a[i] * a[i]; | 340 | StatisticOperation<TResultData>::_resultData[i]._result = StatisticOperation<TResultData>::_resultData[i]._result + a[i] * a[i]; |
341 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; | 341 | ++StatisticOperation<TResultData>::_resultData[i]._nbDataProcessed; |
@@ -347,7 +347,7 @@ namespace AMDA { | @@ -347,7 +347,7 @@ namespace AMDA { | ||
347 | if (isNAN(a)) | 347 | if (isNAN(a)) |
348 | return; | 348 | return; |
349 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 349 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
350 | - StatisticOperation<TResultData>::_resultData._result = a; | 350 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
351 | _dataList.push_back(a); | 351 | _dataList.push_back(a); |
352 | } | 352 | } |
353 | 353 | ||
@@ -392,7 +392,7 @@ namespace AMDA { | @@ -392,7 +392,7 @@ namespace AMDA { | ||
392 | if (isNAN(a)) | 392 | if (isNAN(a)) |
393 | return; | 393 | return; |
394 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) | 394 | if (isNAN(StatisticOperation<TResultData>::_resultData._result)) |
395 | - StatisticOperation<TResultData>::_resultData._result = a; | 395 | + StatisticOperation<TResultData>::_resultData._result = NAN; |
396 | _timeDataList.push_back(std::make_pair(time, a)); | 396 | _timeDataList.push_back(std::make_pair(time, a)); |
397 | } | 397 | } |
398 | 398 |