芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Math/median.php
$numbers * * @pure */ function median(array $numbers): ?float { sort($numbers); $count = count($numbers); if (0 === $count) { return null; } /** @psalm-suppress MissingThrowsDocblock */ $middle_index = div($count, 2); if (0 === $count % 2) { return mean( [$numbers[$middle_index], $numbers[$middle_index - 1]] ) ?? 0.0; } return (float) $numbers[$middle_index]; }