mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
clang-format-3.9
This commit is contained in:
parent
a7fcf83bdf
commit
aa4ea8889c
51 changed files with 332 additions and 271 deletions
|
@ -670,8 +670,9 @@ void UtilTest2::testGenerateRandomData()
|
|||
double mean = sum / counts.size();
|
||||
vector<double> diff(counts.size());
|
||||
transform(counts.begin(), counts.end(), diff.begin(),
|
||||
[&](const decltype(counts)::value_type& elem)
|
||||
-> double { return (double)elem.second - mean; });
|
||||
[&](const decltype(counts)::value_type& elem) -> double {
|
||||
return (double)elem.second - mean;
|
||||
});
|
||||
double sq_sum = inner_product(diff.begin(), diff.end(), diff.begin(), 0.0);
|
||||
double stddev = sqrt(sq_sum / counts.size());
|
||||
cout << "stddev: " << fixed << stddev << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue