Skip to content

Commit f3c9340

Browse files
committed
chore: 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: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7385bec commit f3c9340

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/variance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ int main( void ) {
207207
int i;
208208
209209
for ( i = 0; i < 25; i++ ) {
210-
mu = random_uniform( 0.0, 10.0 ) - 5.0;
210+
mu = random_uniform( -5.0, 5.0 );
211211
sigma = random_uniform( 0.0, 20.0 );
212212
y = stdlib_base_dists_normal_variance( mu, sigma );
213213
printf( "µ: %lf, σ: %lf, Var(X;µ,σ): %lf\n", mu, sigma, y );

lib/node_modules/@stdlib/stats/base/dists/normal/variance/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
25-
var randu = require( '@stdlib/random/base/randu' );
25+
var uniform = require( '@stdlib/random/base/uniform' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
2828
var pkg = require( './../package.json' ).name;
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242
mu = new Float64Array( len );
4343
sigma = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
mu[ i ] = ( randu() * 100.0 ) - 50.0;
46-
sigma[ i ] = ( randu() * 20.0 ) + EPS;
45+
mu[ i ] = uniform( -50.0, 50.0 );
46+
sigma[ i ] = uniform( EPS, 20.0 );
4747
}
4848

4949
b.tic();

lib/node_modules/@stdlib/stats/base/dists/normal/variance/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static double benchmark( void ) {
101101

102102
for ( i = 0; i < 100; i++ ) {
103103
mu[ i ] = random_uniform( -50.0, 50.0 );
104-
sigma[ i ] = random_uniform( 0.0, 20.0 );
104+
sigma[ i ] = random_uniform( 1.0, 20.0 );
105105
}
106106

107107
t = tic();

0 commit comments

Comments
 (0)