NumeRe crashes randomly while using the "med()" function
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
If one uses the med() function on a data set with many NaNs, then it's quite likely that NumeRe crashes or that the result is simply wrong.
Analysis:
The reason for the crash is a missing comparsion with the nCount variable in the Cache and the data class. Add something like
if (nCount == (_vLine.size()*_vCol.size())-nInvalid)
break;
to solve this issue.
Implementation:
The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.
Documentation:
Not needed - Bug fix.
Tests:
The fix was added to the automatic tests. No deviation detected. Bug fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: