Skip to content

Commit 8553770

Browse files
committed
chore: minor clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent aaf7299 commit 8553770

File tree

12 files changed

+13
-24
lines changed

12 files changed

+13
-24
lines changed

lib/node_modules/@stdlib/random/base/uniform/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ interface BinaryFunction extends PRNG {
121121
}
122122

123123
/**
124-
* Interface for generating pseudorandom numbers drawn from an uniform distribution.
124+
* Interface for generating pseudorandom numbers drawn from a uniform distribution.
125125
*/
126126
interface Random extends PRNG {
127127
/**

lib/node_modules/@stdlib/stats/base/dists/exponential/stdev/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
for ( i = 0; i < 25; i++ ) {
196196
lambda = random_uniform( 0.0, 20.0 );
197197
y = stdlib_base_dists_exponential_stdev( lambda );
198-
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
198+
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
199199
}
200200
}
201201
```

lib/node_modules/@stdlib/stats/base/dists/exponential/stdev/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_stdev( lambda );
36-
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
3737
}
3838
}

lib/node_modules/@stdlib/stats/base/dists/exponential/stdev/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ tape( 'the function returns the standard deviation of an exponential distributio
8484
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
8585
} else {
8686
delta = abs( y - expected[ i ] );
87-
tol = 2.0 * EPS * abs( expected[ i ] );
87+
tol = 1.0 * EPS * abs( expected[ i ] );
8888
t.ok( delta <= tol, 'within tolerance. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
8989
}
9090
}

lib/node_modules/@stdlib/stats/base/dists/logistic/mean/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int main( void ) {
213213
mu = random_uniform( 0.0, 10.0 ) - 5.0;
214214
s = random_uniform( 0.0, 20.0 );
215215
y = stdlib_base_dists_logistic_mean( mu, s );
216-
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
216+
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
217217
}
218218
}
219219
```

lib/node_modules/@stdlib/stats/base/dists/logistic/mean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ int main( void ) {
3535
mu = random_uniform( 0.0, 10.0 ) - 5.0;
3636
s = random_uniform( 0.0, 20.0 );
3737
y = stdlib_base_dists_logistic_mean( mu, s );
38-
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
38+
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
3939
}
4040
}

lib/node_modules/@stdlib/stats/base/dists/rayleigh/mean/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int main( void ) {
198198
for ( i = 0; i < 25; i++ ) {
199199
sigma = random_uniform( 0.0, 20.0 );
200200
y = stdlib_base_dists_rayleigh_mean( sigma );
201-
printf( "σ: %lf, Mean(X;σ): %lf\n", sigma, y );
201+
printf( "σ: %lf, E(X;σ): %lf\n", sigma, y );
202202
}
203203
}
204204
```

lib/node_modules/@stdlib/stats/base/dists/rayleigh/mean/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
sigma = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_rayleigh_mean( sigma );
36-
printf( "σ: %lf, Mean(X;σ): %lf\n", sigma, y );
36+
printf( "σ: %lf, E(X;σ): %lf\n", sigma, y );
3737
}
3838
}

lib/node_modules/@stdlib/stats/base/dists/rayleigh/mean/test/test.native.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
2525
var tryRequire = require( '@stdlib/utils/try-require' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
27-
var abs = require( '@stdlib/math/base/special/abs' );
2827
var NINF = require( '@stdlib/constants/float64/ninf' );
29-
var EPS = require( '@stdlib/constants/float64/eps' );
3028

3129

3230
// VARIABLES //
@@ -68,25 +66,17 @@ tape( 'if provided a scale `sigma` that is not a nonnegative number, the functio
6866
t.end();
6967
});
7068

71-
tape( 'the function returns the mean of a Rayleigh distribution', opts, function test( t ) {
69+
tape( 'the function returns the expected value of a Rayleigh distribution', function test( t ) {
7270
var expected;
73-
var delta;
7471
var sigma;
75-
var tol;
7672
var i;
7773
var y;
7874

7975
expected = data.expected;
8076
sigma = data.sigma;
8177
for ( i = 0; i < expected.length; i++ ) {
8278
y = mean( sigma[i] );
83-
if ( y === expected[i] ) {
84-
t.equal( y, expected[i], ', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
85-
} else {
86-
delta = abs( y - expected[ i ] );
87-
tol = 1.0 * EPS * abs( expected[ i ] );
88-
t.ok( delta <= tol, 'within tolerance. sigma: '+sigma[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
89-
}
79+
t.equal( y, expected[i], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
9080
}
9181
t.end();
9282
});

lib/node_modules/@stdlib/stats/base/dists/uniform/entropy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ for ( i = 0; i < 10; i++ ) {
161161

162162
#### stdlib_base_dists_uniform_entropy( a, b )
163163

164-
Evaluates the [entropy][entropy] of a [uniform][uniform-distribution] distribution with `a` the minimum support and `b` the maximum support.
164+
Evaluates the [entropy][entropy] of a [uniform][uniform-distribution] distribution with minimum support `a` and maximum support `b`.
165165

166166
```c
167167
double out = stdlib_base_dists_uniform_entropy( 2.0, 8.0 );

0 commit comments

Comments
 (0)