stats: when applying an operation to two vectors sum the components first.
authorWilliam Wang <William.Wang@arm.com>
Tue, 5 Jun 2012 05:23:11 +0000 (01:23 -0400)
committerWilliam Wang <William.Wang@arm.com>
Tue, 5 Jun 2012 05:23:11 +0000 (01:23 -0400)
commite5f0d6016ba768c06b36d8b3d54f3ea700a4aa58
tree1d0b7512f7eabaabbc04d3752134b61c9cd8a806
parent14539ccae19098a26a7048f475f3ffd44b711f5d
stats: when applying an operation to two vectors sum the components first.

Previously writing X/Y in a formula would result in:
x[0]/y[0] + x[1]/y[1]
In reality you want:
(x[0] +x[1])/(y[0] + y[1])
src/base/statistics.hh