|
79 | 79 | > var rnorm = {{alias:@stdlib/random/base/normal}}.factory({ 'seed': 4839 }); |
80 | 80 | > var x = new Array( 100 ); |
81 | 81 | > for ( var i = 0; i < 100; i++ ) { x[ i ] = rnorm( 3.0, 1.0 ); } |
| 82 | + |
82 | 83 | // 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 ) |
84 | 85 | { pValue: 0.0, statistic: 0.847, ... } |
| 86 | + |
85 | 87 | // Test against N(3,1) |
86 | 88 | > out = {{alias}}( x, 'normal', 3.0, 1.0 ) |
87 | 89 | { pValue: 0.6282, statistic: 0.0733, ... } |
|
113 | 115 | > runif = {{alias:@stdlib/random/base/uniform}}.factory( 0.0, 1.0, { 'seed': 8798 }); |
114 | 116 | > x = new Array( 100 ); |
115 | 117 | > 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' }) |
117 | 119 | { 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' }) |
119 | 121 | { pValue: ~0.907, statistic: ~0.02, ... } |
120 | 122 |
|
121 | 123 | // Set `sorted` option to true when data is in increasing order: |
|
0 commit comments