stats: Fix computation of summed standard deviation
authorYu-ju Hong <yjhong@google.com>
Sat, 30 Jul 2011 07:18:13 +0000 (09:18 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 30 Jul 2011 07:18:13 +0000 (09:18 +0200)
commitcdcac5cf0e9262105e676874d11c4639a80574eb
tree100781719726244092f0afbc17e678521901905d
parent31d23f47d5ee53f74fbf20e17e83c7cb42e39878
stats: Fix computation of summed standard deviation

Fix the computation of standard deviation for a group
of jobs. Please see the below link for the
approximation formula used.
<http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance

The formula was originally presented here:
<ftp://reports.stanford.edu/pub/cstr/reports/cs/tr/79/773/
CS-TR-79-773.pdf>

Signed-off-by: Yu-ju Hong <yjhong@google.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
stat.c