Skip to content

Commit 648f0e0

Browse files
committed
fix: examples
--- 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: na - 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: passed - task: lint_javascript_tests status: na - 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: na - task: lint_c_benchmarks status: na - 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 ba4b452 commit 648f0e0

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/stats/base/nanrange-by/examples

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/stats/base/nanrange-by/examples/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2025 The Stdlib Authors.
4+
* Copyright (c) 2020 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -18,14 +18,13 @@
1818

1919
'use strict';
2020

21-
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
2221
var uniform = require( '@stdlib/random/base/uniform' );
2322
var filledarrayBy = require( '@stdlib/array/filled-by' );
2423
var bernoulli = require( '@stdlib/random/base/bernoulli' );
2524
var nanrangeBy = require( './../lib' );
2625

2726
function rand() {
28-
if ( bernoulli( 0.8 ) < 1 ) {
27+
if ( bernoulli( 0.8 ) < 0.2 ) {
2928
return NaN;
3029
}
3130
return uniform( -50.0, 50.0 );

0 commit comments

Comments
 (0)