Skip to content

Commit f1dc251

Browse files
committed
Auto-generated commit
1 parent 29bbbdc commit f1dc251

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
9089

9190
# Set properties for shell files:
9291
[*.{sh,sh.txt}]

CHANGELOG.md

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

7-
## Unreleased (2025-01-12)
7+
## Unreleased (2025-01-21)
88

99
<section class="features">
1010

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

3535
<details>
3636

37+
- [`9394549`](https://github.com/stdlib-js/stdlib/commit/939454926b745326a5b14bcd0924a0526baa93da) - **bench:** refactor random number generation in `stats/base/dists/beta` [(#4837)](https://github.com/stdlib-js/stdlib/pull/4837) _(by Karan Anand)_
3738
- [`998c1be`](https://github.com/stdlib-js/stdlib/commit/998c1be8630c1efcf19beefda88181db820d1dcb) - **chore:** remove EPS addition and directly draw from desired distribution _(by Philipp Burckhardt)_
3839
- [`fc0ff17`](https://github.com/stdlib-js/stdlib/commit/fc0ff171dab59e73e1748c1bff504166adc826c3) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_
3940
- [`8bf8285`](https://github.com/stdlib-js/stdlib/commit/8bf8285aba0ecbd00ae145c4c5c098cd28135814) - **chore:** minor clean-up _(by Philipp Burckhardt)_
@@ -49,8 +50,9 @@ This release closes the following issue:
4950

5051
### Contributors
5152

52-
A total of 2 people contributed to this release. Thank you to the following contributors:
53+
A total of 3 people contributed to this release. Thank you to the following contributors:
5354

55+
- Karan Anand
5456
- Philipp Burckhardt
5557
- Vivek Maurya
5658

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Daniel Killenberger <[email protected]>
2727
Daniel Yu <[email protected]>
2828
Debashis Maharana <[email protected]>
2929
Desh Deepak Kant <[email protected]>
30+
3031
Dhruv Arvind Singh <[email protected]>
3132
Divyansh Seth <[email protected]>
3233
Dominic Lim <[email protected]>

benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench-harness' );
24-
var randu = require( '@stdlib/random-base-randu' );
24+
var uniform = require( '@stdlib/random-base-uniform' );
2525
var Float64Array = require( '@stdlib/array-float64' );
2626
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2727
var EPS = require( '@stdlib/constants-float64-eps' );
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242
alpha = new Float64Array( len );
4343
beta = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
alpha[ i ] = ( randu()*10.0 ) + EPS;
46-
beta[ i ] = ( randu()*10.0 ) + EPS;
45+
alpha[ i ] = uniform( EPS, 10.0 );
46+
beta[ i ] = uniform( EPS, 10.0 );
4747
}
4848

4949
b.tic();

benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench-harness' );
2525
var Float64Array = require( '@stdlib/array-float64' );
2626
var EPS = require( '@stdlib/constants-float64-eps' );
27-
var randu = require( '@stdlib/random-base-randu' );
27+
var uniform = require( '@stdlib/random-base-uniform' );
2828
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2929
var tryRequire = require( '@stdlib/utils-try-require' );
3030
var pkg = require( './../package.json' ).name;
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
alpha = new Float64Array( len );
5252
beta = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
alpha[ i ] = ( randu()*10.0 ) + EPS;
55-
beta[ i ] = ( randu()*10.0 ) + EPS;
54+
alpha[ i ] = uniform( EPS, 10.0 );
55+
beta[ i ] = uniform( EPS, 10.0 );
5656
}
5757

5858
b.tic();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@stdlib/math-base-assert-is-nan": "^0.2.2",
5252
"@stdlib/math-base-special-abs": "^0.2.2",
5353
"@stdlib/random-base-randu": "^0.2.1",
54+
"@stdlib/random-base-uniform": "^0.2.1",
5455
"@stdlib/utils-try-require": "^0.2.2",
5556
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5657
"istanbul": "^0.4.1",

0 commit comments

Comments
 (0)