/** * Calculates the [trimean]{@link https://en.wikipedia.org/wiki/Trimean} for a sample of values. * * @method trimean * @memberof ran.location * @param {number[]} values Array of values to calculate trimean for. * @returns {number} The trimean of the values, NaN for empty input. * @example * * ran.location.trimean([]) * // => NaN * * ran.location.trimean([1, 1, 1, 2, 3]) * // => 1.25 */ export default function (values: number[]): number;