Code style
This commit is contained in:
parent
e31878ceb1
commit
02e176197a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue