Skip to content

Commit d7624ca

Browse files
committed
Auto-generated commit
1 parent 9321c72 commit d7624ca

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-01-19)
7+
## Unreleased (2025-01-22)
88

99
<section class="features">
1010

@@ -34,6 +34,7 @@ This release closes the following issue:
3434

3535
<details>
3636

37+
- [`f2d2150`](https://github.com/stdlib-js/stdlib/commit/f2d21507493d82265ec30daa3aa00a0829e902c9) - **bench:** refactor random number generation in `stats/base/dists/cauchy` [(#4850)](https://github.com/stdlib-js/stdlib/pull/4850) _(by Karan Anand)_
3738
- [`1188836`](https://github.com/stdlib-js/stdlib/commit/118883606bab688a753219662cb78850e7a48237) - **feat:** add C implementation for `stats/base/dists/cauchy/median` [(#3958)](https://github.com/stdlib-js/stdlib/pull/3958) _(by Vivek Maurya, Philipp Burckhardt, stdlib-bot)_
3839

3940
</details>
@@ -46,8 +47,9 @@ This release closes the following issue:
4647

4748
### Contributors
4849

49-
A total of 2 people contributed to this release. Thank you to the following contributors:
50+
A total of 3 people contributed to this release. Thank you to the following contributors:
5051

52+
- Karan Anand
5153
- Philipp Burckhardt
5254
- Vivek Maurya
5355

benchmark/benchmark.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench-harness' );
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
x0 = new Float64Array( len );
4343
gamma = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
x0[ i ] = ( randu() * 100.0 ) - 50.0;
46-
gamma[ i ] = ( randu() * 20.0 ) + EPS;
45+
x0[ i ] = uniform( -50.0, 50.0 );
46+
gamma[ i ] = uniform( EPS, 20.0 );
4747
}
4848

4949
b.tic();

benchmark/benchmark.native.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench-harness' );
2525
var Float64Array = require( '@stdlib/array-float64' );
26-
var randu = require( '@stdlib/random-base-randu' );
26+
var uniform = require( '@stdlib/random-base-uniform' );
2727
var EPS = require( '@stdlib/constants-float64-eps' );
2828
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2929
var tryRequire = require( '@stdlib/utils-try-require' );
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
x0 = new Float64Array( len );
5252
gamma = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
x0[ i ] = ( randu() * 100.0 ) - 50.0;
55-
gamma[ i ] = ( randu() * 20.0 ) + EPS;
54+
x0[ i ] = uniform( -50.0, 50.0 );
55+
gamma[ i ] = uniform( EPS, 20.0 );
5656
}
5757

5858
b.tic();

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@stdlib/constants-float64-ninf": "^0.2.2",
5151
"@stdlib/constants-float64-pinf": "^0.2.2",
5252
"@stdlib/random-base-randu": "^0.2.1",
53+
"@stdlib/random-base-uniform": "^0.2.1",
5354
"@stdlib/utils-try-require": "^0.2.2",
5455
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5556
"istanbul": "^0.4.1",

0 commit comments

Comments
 (0)