File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
lib/node_modules/@stdlib/stats/base/nanmin-by Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2025 The Stdlib Authors.
4
+ * Copyright (c) 2020 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@ function rand() {
64
64
* @returns {Function } benchmark function
65
65
*/
66
66
function createBenchmark ( len ) {
67
- var x = filledarrayBy ( len , " float64" , rand ) ;
67
+ var x = filledarrayBy ( len , ' float64' , rand ) ;
68
68
return benchmark ;
69
69
70
70
function benchmark ( b ) {
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2025 The Stdlib Authors.
4
+ * Copyright (c) 2020 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
18
18
19
19
'use strict' ;
20
20
21
- var discreteUniform = require ( '@stdlib/random/base/discrete-uniform' ) ;
22
21
var uniform = require ( '@stdlib/random/base/uniform' ) ;
23
22
var filledarrayBy = require ( '@stdlib/array/filled-by' ) ;
24
23
var bernoulli = require ( '@stdlib/random/base/bernoulli' ) ;
25
24
var nanminBy = require ( './../lib' ) ;
26
25
27
26
function rand ( ) {
28
- if ( bernoulli ( 0.8 ) < 1 ) {
27
+ if ( bernoulli ( 0.8 ) < 0.2 ) {
29
28
return NaN ;
30
29
}
31
- return uniform ( - 50.0 , 50.0 ) ;
30
+ return uniform ( - 50 , 50 ) ;
32
31
}
33
32
34
33
function accessor ( v ) {
You can’t perform that action at this time.
0 commit comments