HH\Lib\Math\median

Meta Engineer?

This is available as Math\median in the www repository.

Returns the median of the given numbers

namespace HH\Lib\Math;

function median(
  Container<num> $numbers,
): ?float;

To find the mean, see Math\mean().

Parameters

Returns

  • ?float