/** * Calculates the general Levene test with the specified aggregator. For mean it is the Leven test, for median it gives the Brown-Forsythe test. * * @method generalLevene * @memberof ran.test * @param {Array[]} dataSets Array containing the data sets. * @param {number} alpha Confidence level. * @param aggregator * @returns {{stat: number, passed: boolean}} Object containing the test statistics and whether the data sets passed the null hypothesis that * their variances are the same. * @throws {Error} If the number of data sets is less than 2. * @throws {Error} If the size of any data set is less than 2 elements. * @ignore */ export declare function generalLevene(dataSets: any[][], alpha: number, aggregator: any): { stat: number; passed: boolean; }; /** * Calculates the [Levene's test]{@link https://en.wikipedia.org/wiki/Levene%27s_test} statistic for multiple data sets. * * @method levene * @memberof ran.test * @param {Array[]} dataSets Array containing the data sets. * @param {number} alpha Confidence level. * @returns {{stat: number, passed: boolean}} Object containing the test statistics (W) and whether the data sets passed the null hypothesis that * their variances are the same. * @throws {Error} If the number of data sets is less than 2. * @throws {Error} If the size of any data set is less than 2 elements. * @example * * let normal1 = new ran.dist.Normal(1, 2) * let normal2 = new ran.dist.Normal(1, 3) * let normal3 = new ran.dist.Normal(1, 5) * * ran.test.levene([normal1.sample(100), normal1.sample(100), normal1.sample(100)], 0.1) * // => { stat: 0.019917137672045088, passed: true } * * ran.test.levene([normal1.sample(100), normal2.sample(100), normal3.sample(100)], 0.1) * // => { stat: 29.06345994086687, passed: false } */ export declare function levene(dataSets: any[][], alpha?: number): { stat: number; passed: boolean; };