From 21bbdb4b08e5fb4b8f1a3dd99ebf24043c89e69c Mon Sep 17 00:00:00 2001 From: Sumithraju Date: Sun, 15 Mar 2026 09:12:01 +0530 Subject: [PATCH] chore: fix JavaScript and EditorConfig lint errors (issues #10944, #10943) --- .../@stdlib/stats/wilcoxon/examples/index.js | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/wilcoxon/examples/index.js b/lib/node_modules/@stdlib/stats/wilcoxon/examples/index.js index 58162e560a0c..334252c14e09 100644 --- a/lib/node_modules/@stdlib/stats/wilcoxon/examples/index.js +++ b/lib/node_modules/@stdlib/stats/wilcoxon/examples/index.js @@ -29,23 +29,23 @@ var i; runif = uniform( -50.0, 50.0, { 'seed': 37827 }); -arr = new Array( 100 ); -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = runif(); +arr = []; +for ( i = 0; i < 100; i++ ) { + arr.push( runif() ); } // Test whether distribution is symmetric around zero: out = wilcoxon( arr ); console.log( out.print() ); /* e.g., => - One-Sample Wilcoxon signed rank test + One-Sample Wilcoxon signed rank test - Alternative hypothesis: Median of `x` is not equal to 0 + Alternative hypothesis: Median of `x` is not equal to 0 - pValue: 0.7714 - statistic: 2438.5 + pValue: 0.7714 + statistic: 2438.5 - Test Decision: Fail to reject null in favor of alternative at 5% significance level + Test Decision: Fail to reject null in favor of alternative at 5% significance level */ // Test whether distribution has median of five: @@ -54,12 +54,12 @@ out = wilcoxon( arr, { }); console.log( out.print() ); /* e.g, => - One-Sample Wilcoxon signed rank test + One-Sample Wilcoxon signed rank test - Alternative hypothesis: Median of `x` is not equal to 5 + Alternative hypothesis: Median of `x` is not equal to 5 - pValue: 0.0529 - statistic: 1961.5 + pValue: 0.0529 + statistic: 1961.5 - Test Decision: Fail to reject null in favor of alternative at 5% significance level + Test Decision: Fail to reject null in favor of alternative at 5% significance level */