Skip to content

Commit cf9c83f

Browse files
authored
chore: fix JavaScript and EditorConfig lint errors
PR-URL: #10947 Reviewed-by: Athan Reines <kgryte@gmail.com> Closes: #10944 Closes: #10943
1 parent e81a8c0 commit cf9c83f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

  • lib/node_modules/@stdlib/stats/wilcoxon/examples

lib/node_modules/@stdlib/stats/wilcoxon/examples/index.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ var i;
2929
runif = uniform( -50.0, 50.0, {
3030
'seed': 37827
3131
});
32-
arr = new Array( 100 );
33-
for ( i = 0; i < arr.length; i++ ) {
34-
arr[ i ] = runif();
32+
arr = [];
33+
for ( i = 0; i < 100; i++ ) {
34+
arr.push( runif() );
3535
}
3636

3737
// Test whether distribution is symmetric around zero:
3838
out = wilcoxon( arr );
3939
console.log( out.print() );
4040
/* e.g., =>
41-
One-Sample Wilcoxon signed rank test
41+
One-Sample Wilcoxon signed rank test
4242
43-
Alternative hypothesis: Median of `x` is not equal to 0
43+
Alternative hypothesis: Median of `x` is not equal to 0
4444
45-
pValue: 0.7714
46-
statistic: 2438.5
45+
pValue: 0.7714
46+
statistic: 2438.5
4747
48-
Test Decision: Fail to reject null in favor of alternative at 5% significance level
48+
Test Decision: Fail to reject null in favor of alternative at 5% significance level
4949
*/
5050

5151
// Test whether distribution has median of five:
@@ -54,12 +54,12 @@ out = wilcoxon( arr, {
5454
});
5555
console.log( out.print() );
5656
/* e.g, =>
57-
One-Sample Wilcoxon signed rank test
57+
One-Sample Wilcoxon signed rank test
5858
59-
Alternative hypothesis: Median of `x` is not equal to 5
59+
Alternative hypothesis: Median of `x` is not equal to 5
6060
61-
pValue: 0.0529
62-
statistic: 1961.5
61+
pValue: 0.0529
62+
statistic: 1961.5
6363
64-
Test Decision: Fail to reject null in favor of alternative at 5% significance level
64+
Test Decision: Fail to reject null in favor of alternative at 5% significance level
6565
*/

0 commit comments

Comments
 (0)