Code style

This commit is contained in:
Adrien Crivelli 2018-02-05 21:48:47 +09:00
parent e31878ceb1
commit 02e176197a
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 5 additions and 5 deletions

View File

@ -195,11 +195,11 @@ class Csv extends BaseReader
} }
$meanSquareDeviations[$delimiter] = array_reduce( $meanSquareDeviations[$delimiter] = array_reduce(
$series, $series,
function ($sum, $value) use ($median) { function ($sum, $value) use ($median) {
return $sum + pow($value - $median, 2); return $sum + pow($value - $median, 2);
} }
) / count($series); ) / count($series);
} }
// ... and pick the delimiter with the smallest mean square deviation (in case of ties, the order in potentialDelimiters is respected) // ... and pick the delimiter with the smallest mean square deviation (in case of ties, the order in potentialDelimiters is respected)