Skip to content

chore: fix EditorConfig lint errors (issue #7576) #7595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 14 additions & 37 deletions lib/node_modules/@stdlib/stats/wilcoxon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ table = out.print();
*/
```

By default, all zero-differences are discarded before calculating the ranks. Set `zeroMethod` to `pratt` when you wish differences of zero to be used in the rank calculation but then drop them or to `zsplit` when differences of zero are shall be used in the ranking procedure and the ranks then split between positive and negative ones.
By default, all zero-differences are discarded before calculating the ranks. Set `zeroMethod` to `pratt` when you wish differences of zero to be used in the rank calculation but then drop them or to `zsplit` when differences of zero are shall be used in the ranking procedure and the ranks then split between positive and negative ones.

```javascript
var arr = [ 0, 2, 3, -1, -4, 0, 0, 8, 9 ];
Expand Down Expand Up @@ -220,21 +220,14 @@ out = wilcoxon( arr, {
By default, the test uses the exact distribution of the rank statistic to calculate the critical values for the test in case of no ties and no zero-differences. Since it is more computationally efficient, starting with fifty observations a normal approximation is employed. If you would like the test to use the correct distribution even for larger samples, set the `exact` option to `true`.

```javascript
var normal = require( '@stdlib/random/base/normal' ).factory;
var rnorm;
var arr;
var out;
var i;
var normal = require( '@stdlib/random/array/normal' );

rnorm = normal( 0.0, 4.0, {
var rnorm = normal.factory( 0.0, 4.0, {
'seed': 100
});
arr = new Array( 100 );
for ( i = 0; i < arr.length; i++ ) {
arr[ i ] = rnorm();
}
var arr = rnorm( 100 );

out = wilcoxon( arr, {
var out = wilcoxon( arr, {
'exact': false
});
/* e.g., returns
Expand Down Expand Up @@ -264,21 +257,14 @@ out = wilcoxon( arr, {
By default, when using the normal approximation, the test uses a continuity correction, which adjusts the Wilcoxon rank statistic by `0.5` towards the mean. To disable this correction, set `correction` to `false`.

```javascript
var normal = require( '@stdlib/random/base/normal' ).factory;
var rnorm;
var arr;
var out;
var i;
var normal = require( '@stdlib/random/array/normal' );

rnorm = normal( 0.0, 4.0, {
var rnorm = normal.factory( 0.0, 4.0, {
'seed': 100
});
arr = new Array( 100 );
for ( i = 0; i < arr.length; i++ ) {
arr[ i ] = rnorm();
}
var arr = rnorm( 100 );

out = wilcoxon( arr, {
var out = wilcoxon( arr, {
'correction': false
});
/* e.g., returns
Expand Down Expand Up @@ -316,26 +302,17 @@ out = wilcoxon( arr, {
<!-- eslint no-undef: "error" -->

```javascript
var uniform = require( '@stdlib/random/base/discrete-uniform' ).factory;
var uniform = require( '@stdlib/random/array/discrete-uniform' );
var wilcoxon = require( '@stdlib/stats/wilcoxon' );

var table;
var runif;
var arr;
var out;
var i;

runif = uniform( -50.0, 50.0, {
var runif = uniform.factory( -50.0, 50.0, {
'seed': 37827
});
arr = new Array( 100 );
for ( i = 0; i < arr.length; i++ ) {
arr[ i ] = runif();
}
var arr = runif( 100 );

// Test whether distribution is symmetric around zero:
out = wilcoxon( arr );
table = out.print();
var out = wilcoxon( arr );
var table = out.print();
/* e.g., returns
One-Sample Wilcoxon signed rank test

Expand Down