clang-format-3.9

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-15 19:02:54 +09:00
parent a7fcf83bdf
commit aa4ea8889c
51 changed files with 332 additions and 271 deletions

View file

@ -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;