Skip to content

Commit 8a59323

Browse files
committed
Fix lint errors
1 parent 87d2dd3 commit 8a59323

6 files changed

Lines changed: 23 additions & 17 deletions

File tree

lib/node_modules/@stdlib/stats/chi2gof/docs/repl.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,21 @@
126126
> var rpois = {{alias:@stdlib/random/base/poisson}}.factory( lambda );
127127
> var len = 400;
128128
> x = new Array( len );
129-
> for ( var i = 0; i < len; i++ ) { x[ i ] = rpois(); }
129+
> for ( var i = 0; i < len; i++ ) {
130+
... x[ i ] = rpois();
131+
... };
132+
130133
// Generate frequency table:
131134
> var freqs = [];
132135
> for ( i = 0; i < len; i++ ) {
133136
... val = x[ i ];
134137
... freqs[ val ] === void 0 ? freqs[ val ] = 1 : freqs[ val ] += 1;
135-
... }
138+
... };
136139
// Fill holes in array:
137140
> for ( i = 0; i < freqs.length; i++ ) {
138141
... if ( freqs[ i ] === void 0 ) { freqs[ i ] = 0; }
139-
... }
140-
> out = {{alias}}( freqs, 'poisson', lambda );
142+
... };
143+
> out = {{alias}}( freqs, 'poisson', lambda )
141144
{...}
142145

143146
See Also

lib/node_modules/@stdlib/stats/kstest/docs/repl.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@
7979
> var rnorm = {{alias:@stdlib/random/base/normal}}.factory({ 'seed': 4839 });
8080
> var x = new Array( 100 );
8181
> for ( var i = 0; i < 100; i++ ) { x[ i ] = rnorm( 3.0, 1.0 ); }
82+
8283
// Test against N(0,1)
83-
> var out = {{alias}}( x, 'normal', 0.0, 1.0 );
84+
> var out = {{alias}}( x, 'normal', 0.0, 1.0 )
8485
{ pValue: 0.0, statistic: 0.847, ... }
86+
8587
// Test against N(3,1)
8688
> out = {{alias}}( x, 'normal', 3.0, 1.0 )
8789
{ pValue: 0.6282, statistic: 0.0733, ... }
@@ -113,9 +115,9 @@
113115
> runif = {{alias:@stdlib/random/base/uniform}}.factory( 0.0, 1.0, { 'seed': 8798 });
114116
> x = new Array( 100 );
115117
> for ( i = 0; i < x.length; i++ ) { x[ i ] = runif(); }
116-
> out = kstest( x, 'uniform', 0.0, 1.0, { 'alternative': 'less' });
118+
> out = kstest( x, 'uniform', 0.0, 1.0, { 'alternative': 'less' })
117119
{ pValue: ~0.358, statistic: ~0.07, ... }
118-
> out = kstest( x, 'uniform', 0.0, 1.0, { 'alternative': 'greater' });
120+
> out = kstest( x, 'uniform', 0.0, 1.0, { 'alternative': 'greater' })
119121
{ pValue: ~0.907, statistic: ~0.02, ... }
120122

121123
// Set `sorted` option to true when data is in increasing order:

lib/node_modules/@stdlib/stats/lowess/docs/repl.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
> for ( var i = 0; i < x.length; i++ ) {
4343
... x[ i ] = i;
4444
... y[ i ] = ( 0.5*i ) + ( 10.0*{{alias:@stdlib/random/base/randn}}() );
45-
> }
45+
... }
4646
> var out = {{alias}}( x, y );
4747
> var yhat = out.y;
48-
>
48+
4949
> var h = plot( [ x, x ], [ y, yhat ] );
5050
> h.lineStyle = [ 'none', '-' ];
5151
> h.symbols = [ 'closed-circle', 'none' ];
52-
>
52+
5353
> h.view( 'window' );
5454

5555
See Also

lib/node_modules/@stdlib/stats/ttest2/docs/repl.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
}
100100

101101
// Print table output:
102-
> var table = out.print();
102+
> var table = out.print()
103103
Welch two-sample t-test
104104

105105
Alternative hypothesis: True difference in means is not equal to 0
@@ -113,7 +113,7 @@
113113

114114
// Choose a different significance level than `0.05`:
115115
> out = {{alias}}( x, y, { 'alpha': 0.1 });
116-
> table = out.print();
116+
> table = out.print()
117117
Welch two-sample t-test
118118

119119
Alternative hypothesis: True difference in means is not equal to 0
@@ -156,7 +156,7 @@
156156
> x = [ 2, 3, 1, 4 ];
157157
> y = [ 1, 2, 3, 1, 2, 5, 3, 4 ];
158158
> out = {{alias}}( x, y, { 'variance': 'equal' });
159-
> table = out.print();
159+
> table = out.print()
160160
Two-sample t-test
161161

162162
Alternative hypothesis: True difference in means is not equal to 0

lib/node_modules/@stdlib/stats/ztest/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
// Perform one-sided tests:
118118
> arr = [ 4, 4, 6, 6, 5 ];
119-
> out = {{alias}}( arr, 1.0, { 'alternative': 'less' });
119+
> out = {{alias}}( arr, 1.0, { 'alternative': 'less' })
120120
{
121121
alpha: 0.05,
122122
rejected: false,
@@ -125,7 +125,7 @@
125125
ci: [ -Infinity, 5.735600904580115 ],
126126
// ...
127127
}
128-
> out = {{alias}}( arr, 1.0, { 'alternative': 'greater' });
128+
> out = {{alias}}( arr, 1.0, { 'alternative': 'greater' })
129129
{
130130
alpha: 0.05,
131131
rejected: true,

lib/node_modules/@stdlib/stats/ztest2/docs/repl.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
--------
8484
// Drawn from Normal(0,2):
8585
> var x = [ -0.21, 0.14, 1.65, 2.11, -1.86, -0.29, 1.48, 0.81, 0.86, 1.04 ];
86+
8687
// Drawn from Normal(1,2):
8788
> var y = [ -1.53, -2.93, 2.34, -1.15, 2.7, -0.12, 4.22, 1.66, 3.43, 4.66 ];
8889
> var out = {{alias}}( x, y, 2.0, 2.0 )
@@ -100,7 +101,7 @@
100101
}
101102

102103
// Print table output:
103-
> var table = out.print();
104+
> var table = out.print()
104105
Two-sample z-test
105106

106107
Alternative hypothesis: True difference in means is not equal to 0
@@ -114,7 +115,7 @@
114115

115116
// Choose a different significance level than `0.05`:
116117
> out = {{alias}}( x, y, 2.0, 2.0, { 'alpha': 0.4 });
117-
> table = out.print();
118+
> table = out.print()
118119
Two-sample z-test
119120

120121
Alternative hypothesis: True difference in means is not equal to 0

0 commit comments

Comments
 (0)