This commit is contained in:
Dennis Eichhorn 2020-09-25 15:52:59 +02:00 committed by GitHub
parent 7b1e7ac1ae
commit 7a3b8aab82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,8 +197,8 @@ final class Metrics
$count = \count($purchaseProbability);
for ($i = 0; $i < $count; ++$i) {
$matrix[$i] = \array_fill(0, $count, 0);
$matrix[$i][0] = $purchaseProbability[$i];
$matrix[$i] = \array_fill(0, $count, 0);
$matrix[$i][0] = $purchaseProbability[$i];
$matrix[$i][
$i === $count - 1 ? $i : $i + 1