mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statistics] Clean code
This commit is contained in:
@@ -43,8 +43,8 @@ double Store::heightOfBarAtIndex(int series, int index) const {
|
||||
double Store::heightOfBarAtValue(int series, double value) const {
|
||||
double width = barWidth();
|
||||
int barNumber = std::floor((value - m_firstDrawnBarAbscissa)/width);
|
||||
double lowerBound = m_firstDrawnBarAbscissa + barNumber*width;
|
||||
double upperBound = m_firstDrawnBarAbscissa + (barNumber+1)*width;
|
||||
double lowerBound = m_firstDrawnBarAbscissa + ((double)barNumber)*width;
|
||||
double upperBound = m_firstDrawnBarAbscissa + ((double)(barNumber+1))*width;
|
||||
return sumOfValuesBetween(series, lowerBound, upperBound);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user