/** * Calculates the [Mann-Whitney statistics]{@link https://en.wikipedia.org/wiki/Mann%E2%80%93Whitney_U_test} for two * data sets. * * @method mannWhitney * @memberof ran.test * @param {Array[]} dataSets Array containing the two data sets. * @param {number} [alpha = 0.05] Confidence level. * @returns {{stat: number, passed: boolean}} Object containing the (non-standardized) test statistics (U) and whether the data sets passed the null hypothesis that * the samples come from the same distribution. * @throws {Error} If the number of data sets is different from 2. * @example * * let pareto = new ran.dist.Pareto(1, 2) * let uniform = new ran.dist.Uniform(1, 10) * * ran.test.mannWhitney([pareto.sample(100), pareto.sample(100)], 0.1) * // => { stat: 4941, passed: true } * * ran.test.mannWhitney([pareto.sample(100), uniform.sample(100)], 0.1) * // => { stat: 132, passed: false } */ export default function (dataSets: any[][], alpha?: number): { stat: number; passed: boolean; };