/** * Calculates the fractional rank for an array of values. * * @method rank * @memberof ran.shape * @param {number[]} values Array of values to calculate ranks for. * @returns {number[]} The ranks of the values, or an empty array for empty input. * @example * * ran.shape.rank([]) * // => [] * * ran.shape.rank([1, 2, 2, 3]) * // => [1, 2.5, 2.5, 4] */ export default function (values: number[]): number[];