Calculate the Nxx (e.g. N50) of values. values will be sorted in the
process. If this is undesired the range must be duplicated beforehands.
The elements of values are passed to map before calculating the
median. This removes the necessity of creating a proxy range.
The CTFE-version differs from the dynamic implementation only in a static
check for a valid value of xx and the order of arguments.
The CTFE-version should be preferred if possible because it looks nicer.
Calculate the Nxx (e.g. N50) of values. values will be sorted in the process. If this is undesired the range must be duplicated beforehands. The elements of values are passed to map before calculating the median. This removes the necessity of creating a proxy range.
The CTFE-version differs from the dynamic implementation only in a static check for a valid value of xx and the order of arguments. The CTFE-version should be preferred if possible because it looks nicer.