Skip to content

Commit 2671643

Browse files
committed
Auto-generated commit
1 parent f4abb76 commit 2671643

23 files changed

+527
-93
lines changed

CHANGELOG.md

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

7-
## Unreleased (2025-03-01)
7+
## Unreleased (2025-03-06)
88

99
<section class="features">
1010

@@ -20,9 +20,9 @@
2020

2121
### Closed Issues
2222

23-
This release closes the following issue:
23+
A total of 2 issues were closed in this release:
2424

25-
[#3818](https://github.com/stdlib-js/stdlib/issues/3818)
25+
[#3818](https://github.com/stdlib-js/stdlib/issues/3818), [#4704](https://github.com/stdlib-js/stdlib/issues/4704)
2626

2727
</section>
2828

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

3535
<details>
3636

37+
- [`dd3acfd`](https://github.com/stdlib-js/stdlib/commit/dd3acfdb0eb89f51b9d42e9b078b4c646b1a49cf) - **refactor:** update `stats/base/dists/triangular/mgf` implementation and test tolerances [(#4768)](https://github.com/stdlib-js/stdlib/pull/4768) _(by Karan Anand, Philipp Burckhardt, stdlib-bot)_
3738
- [`276f077`](https://github.com/stdlib-js/stdlib/commit/276f077fe99f7647d5f31256dc0220a45eedbf3e) - **test:** add tests to achieve 100% code coverage [(#5638)](https://github.com/stdlib-js/stdlib/pull/5638) _(by Karan Anand)_
3839
- [`c7bfa92`](https://github.com/stdlib-js/stdlib/commit/c7bfa923af0c5346766c90300e0d0a3c2188d438) - **docs:** fix missing ending `section` in various READMEs [(#5292)](https://github.com/stdlib-js/stdlib/pull/5292) _(by Saurabh Singh)_
3940
- [`1d5aa47`](https://github.com/stdlib-js/stdlib/commit/1d5aa47204c258b674d3db4aec92fbd2475e5ea7) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44

55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
7+
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
8+
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
79
Abhijit Raut <abhijitmraut8010@gmail.com>
810
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
911
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1012
Aditya Sapra <adityaework@gmail.com>
1113
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1214
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1315
Ahmed Khaled <kahmd1444@gmail.com>
16+
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1417
Aleksandr <112382387+alextes90@users.noreply.github.com>
1518
Ali Salesi <ali_sal1381@yahoo.com>
1619
Aman Bhansali <bhansali.1@iitj.ac.in>
@@ -30,6 +33,7 @@ Debashis Maharana <debashismaharana7854@gmail.com>
3033
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
3134
Dev Goel <135586571+corsairier@users.noreply.github.com>
3235
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
36+
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
3337
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3438
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3539
Dominik Moritz <domoritz@gmail.com>
@@ -38,6 +42,7 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3842
Frank Kovacs <fran70kk@gmail.com>
3943
GK Bishnoi <gkishan1kyt@gmail.com>
4044
Gaurav <gaurav70380@gmail.com>
45+
Gautam sharma <gautamkrishnasharma1@gmail.com>
4146
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
4247
Gunj Joshi <gunjjoshi8372@gmail.com>
4348
Gururaj Gurram <gururajgurram1512@gmail.com>
@@ -46,6 +51,7 @@ HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4651
Harshita Kalani <harshitakalani02@gmail.com>
4752
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4853
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
54+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4955
James Gelok <jdgelok@gmail.com>
5056
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
5157
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
@@ -134,7 +140,9 @@ Vivek Maurya <vm8118134@gmail.com>
134140
Xiaochuan Ye <tap91624@gmail.com>
135141
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
136142
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
143+
Yugal Kaushik <yugalkaushik14@gmail.com>
137144
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
145+
ditsu <170345142+ditsus@users.noreply.github.com>
138146
ekambains <bainsinbusiness@gmail.com>
139147
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
140148
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>

benchmark/benchmark.js

Lines changed: 12 additions & 7 deletions
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;
@@ -47,10 +47,10 @@ bench( pkg, function benchmark( b ) {
4747
mode = new Float64Array( len );
4848

4949
for ( i = 0; i < len; i++ ) {
50-
t[ i ] = randu() * 5.0;
51-
min[ i ] = randu() * 10.0;
52-
max[ i ] = min[ i ] + ( randu() * 40.0 ) + EPS;
53-
mode[ i ] = min[ i ] + ( ( max[ i ] - min[ i ] ) * randu() );
50+
t[ i ] = uniform( 0.0, 5.0 );
51+
min[ i ] = uniform( 0.0, 10.0 );
52+
max[ i ] = uniform( min[ i ] + EPS, min[ i ] + 40.0 );
53+
mode[ i ] = uniform( min[ i ], max[ i ]);
5454
}
5555

5656
b.tic();
@@ -73,6 +73,7 @@ bench( pkg+':factory', function benchmark( b ) {
7373
var mode;
7474
var min;
7575
var max;
76+
var len;
7677
var t;
7778
var y;
7879
var i;
@@ -81,11 +82,15 @@ bench( pkg+':factory', function benchmark( b ) {
8182
max = 1.5;
8283
mode = 0.5;
8384
mymgf = mgf.factory( min, max, mode );
85+
len = 100;
86+
t = new Float64Array( len );
87+
for ( i = 0; i < len; i++ ) {
88+
t[ i ] = uniform( 0.0, 5.0 );
89+
}
8490

8591
b.tic();
8692
for ( i = 0; i < b.iterations; i++ ) {
87-
t = randu() * 5.0;
88-
y = mymgf( t );
93+
y = mymgf( t[ i % len ]);
8994
if ( isnan( y ) ) {
9095
b.fail( 'should not return NaN' );
9196
}

benchmark/benchmark.native.js

Lines changed: 5 additions & 5 deletions
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 isnan = require( '@stdlib/math-base-assert-is-nan' );
2828
var tryRequire = require( '@stdlib/utils-try-require' );
2929
var EPS = require( '@stdlib/constants-float64-eps' );
@@ -56,10 +56,10 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5656
mode = new Float64Array( len );
5757

5858
for ( i = 0; i < len; i++ ) {
59-
t[ i ] = randu() * 5.0;
60-
min[ i ] = randu() * 10.0;
61-
max[ i ] = min[ i ] + ( randu() * 40.0 ) + EPS;
62-
mode[ i ] = min[ i ] + ( ( max[ i ] - min[ i ] ) * randu() );
59+
t[ i ] = uniform( 0.0, 5.0 );
60+
min[ i ] = uniform( 0.0, 10.0 );
61+
max[ i ] = uniform( min[ i ] + EPS, min[ i ] + 40.0 );
62+
mode[ i ] = uniform( min[ i ], max[ i ]);
6363
}
6464

6565
b.tic();

dist/index.js

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)