mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps/statistics] Fix bug in quartile computation
Change-Id: Ie5bbcf745b7a4f9766db1d3c39ca42d8489970da
This commit is contained in:
@@ -133,12 +133,12 @@ float Store::standardDeviation() {
|
||||
}
|
||||
|
||||
float Store::firstQuartile() {
|
||||
int firstQuartileIndex = floorf(sumOfColumn(1)/4)+1;
|
||||
int firstQuartileIndex = ceilf(sumOfColumn(1)/4);
|
||||
return sortedElementNumber(firstQuartileIndex);
|
||||
}
|
||||
|
||||
float Store::thirdQuartile() {
|
||||
int thirdQuartileIndex = floorf(3*sumOfColumn(1)/4)+1;
|
||||
int thirdQuartileIndex = ceilf(3*sumOfColumn(1)/4);
|
||||
return sortedElementNumber(thirdQuartileIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user