mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[apps/statistics] Fix bug in quartile methods
Change-Id: I50e039a2fd99162728269c8e38c4eb5087171596
This commit is contained in:
@@ -199,7 +199,7 @@ float Store::sortedElementNumber(int k) {
|
||||
float bufferValues[m_numberOfPairs];
|
||||
memcpy(bufferValues, m_data[0], m_numberOfPairs*sizeof(float));
|
||||
int sortedElementIndex = 0;
|
||||
int cumulatedSize = 0;
|
||||
float cumulatedSize = 0.0f;
|
||||
while (cumulatedSize < k) {
|
||||
sortedElementIndex = minIndex(bufferValues, m_numberOfPairs);
|
||||
bufferValues[sortedElementIndex] = FLT_MAX;
|
||||
|
||||
Reference in New Issue
Block a user