/** * Calculates the [sample excess kurtosis]{@link https://en.wikipedia.org/wiki/Kurtosis#Estimators_of_population_kurtosis} * which is unbiased for the normal distribution. * * @method kurtosis * @memberof ran.shape * @param {number[]} values Array of values to calculate kurtosis for. * @returns {number} The sample excess kurtosis, or NaN for fewer than 3 elements or zero variance. * @example * * ran.shape.kurtosis([]) * // => NaN * * ran.shape.kurtosis([1, 2]) * // => NaN * * ran.shape.kurtosis([1, 1, 1]) * // => NaN * * ran.shape.kurtosis([1, 1, 3, 1, 1]) * // => 5.000000000000003 * * ran.shape.kurtosis([1, 2, 2, 2, 1]) * // => -3.3333333333333326 */ export default function (values: number[]): number;