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];
|
||||
|
||||
Reference in New Issue
Block a user