Skip to content

Commit

Permalink
Correct growth header
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnaik committed Nov 25, 2018
1 parent 7e30a51 commit df6b35c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion access-portal/region.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function metricTable($precision, $data, $odates, $datasets, $averages, $growthRa
$ret .= " <tr>\n";
$ret .= " <th>Dataset</th>\n";
$ret .= " <th>Average</th>\n";
$ret .= " <th>Growth rate</th>\n";
$ret .= " <th>Growth (start to end, using linear fit)</th>\n";
foreach ($odates as $odate) {
$ret .= ' <th>' . $odate . '</th>' . "\n";
}
Expand Down
2 changes: 1 addition & 1 deletion python/compute_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def growth_rate(df):
first_y = slope * first_x + intercept
last_y = slope * last_x + intercept

growth = (last_y - first_y) / (first_y * (last_x - first_x)/10000)
growth = (last_y - first_y) / first_y
result[col] = growth

return result
Expand Down

0 comments on commit df6b35c

Please sign in to comment.