Code style
This commit is contained in:
parent
e31878ceb1
commit
02e176197a
|
@ -195,11 +195,11 @@ class Csv extends BaseReader
|
|||
}
|
||||
|
||||
$meanSquareDeviations[$delimiter] = array_reduce(
|
||||
$series,
|
||||
function ($sum, $value) use ($median) {
|
||||
return $sum + pow($value - $median, 2);
|
||||
}
|
||||
) / count($series);
|
||||
$series,
|
||||
function ($sum, $value) use ($median) {
|
||||
return $sum + pow($value - $median, 2);
|
||||
}
|
||||
) / count($series);
|
||||
}
|
||||
|
||||
// ... and pick the delimiter with the smallest mean square deviation (in case of ties, the order in potentialDelimiters is respected)
|
||||
|
|
Loading…
Reference in New Issue