Skip to content

Commit 78846cb

Browse files
committed
fix: update docs and 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: 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: 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 2a20257 commit 78846cb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/node_modules/@stdlib/stats/base/nanmin-by/benchmark/benchmark.ndarray.js

Lines changed: 2 additions & 2 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.
@@ -64,7 +64,7 @@ function rand() {
6464
* @returns {Function} benchmark function
6565
*/
6666
function createBenchmark( len ) {
67-
var x = filledarrayBy( len, "float64", rand );
67+
var x = filledarrayBy( len, 'float64', rand );
6868
return benchmark;
6969

7070
function benchmark( b ) {

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

Lines changed: 3 additions & 4 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,17 +18,16 @@
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 nanminBy = require( './../lib' );
2625

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

3433
function accessor( v ) {

0 commit comments

Comments
 (0)