mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statistics] Allow non integer value sizes
This commit is contained in:
@@ -192,7 +192,7 @@ double Store::defaultValue(int i, int j) {
|
||||
}
|
||||
|
||||
double Store::sumOfValuesBetween(double x1, double x2) {
|
||||
int result = 0;
|
||||
double result = 0;
|
||||
for (int k = 0; k < m_numberOfPairs; k++) {
|
||||
if (m_data[0][k] < x2 && x1 <= m_data[0][k]) {
|
||||
result += m_data[1][k];
|
||||
|
||||
@@ -42,8 +42,6 @@ bool StoreController::setDataAtLocation(double floatBody, int columnIndex, int r
|
||||
if (floatBody < 0) {
|
||||
return false;
|
||||
}
|
||||
m_store->set(std::round(floatBody), columnIndex, rowIndex-1);
|
||||
return true;
|
||||
}
|
||||
return Shared::StoreController::setDataAtLocation(floatBody, columnIndex, rowIndex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user