Skip to content

Commit 2abe01d

Browse files
committed
Auto-generated commit
1 parent 4ad8094 commit 2abe01d

File tree

7 files changed

+57
-13
lines changed

7 files changed

+57
-13
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/stats/base/dists/weibull/logcdf) of the main repository where we’ll review and provide feedback.
44

5-
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
5+
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib.
66

77
We look forward to receiving your contribution! :smiley:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
192+
# Cursor #
193+
##########
194+
.cursorignore

CHANGELOG.md

Lines changed: 16 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-02-09)
7+
## Unreleased (2025-03-05)
88

99
<section class="features">
1010

@@ -16,12 +16,25 @@
1616

1717
<!-- /.features -->
1818

19+
<section class="issues">
20+
21+
### Closed Issues
22+
23+
This release closes the following issue:
24+
25+
[#4992](https://github.com/stdlib-js/stdlib/issues/4992)
26+
27+
</section>
28+
29+
<!-- /.issues -->
30+
1931
<section class="commits">
2032

2133
### Commits
2234

2335
<details>
2436

37+
- [`1ebcfd6`](https://github.com/stdlib-js/stdlib/commit/1ebcfd618beaf055a7097c89f3794d507fd14947) - **bench:** refactor random number generation in `stats/base/dists/weibull` [(#5342)](https://github.com/stdlib-js/stdlib/pull/5342) _(by Gaurav)_
2538
- [`e61b1de`](https://github.com/stdlib-js/stdlib/commit/e61b1dee3334bacf30d213de5b5f1c7868c0753b) - **docs:** clean-up of C docstrings _(by Philipp Burckhardt)_
2639
- [`1fe6f65`](https://github.com/stdlib-js/stdlib/commit/1fe6f651831f7c0090ec6fc6b99707be0f7e6bce) - **test:** fix name of checked variable _(by Philipp Burckhardt)_
2740
- [`c4ef550`](https://github.com/stdlib-js/stdlib/commit/c4ef5500174a0d77a90b1a72be560938ac56d58d) - **chore:** minor clean-up _(by Philipp Burckhardt)_
@@ -41,8 +54,9 @@
4154

4255
### Contributors
4356

44-
A total of 2 people contributed to this release. Thank you to the following contributors:
57+
A total of 3 people contributed to this release. Thank you to the following contributors:
4558

59+
- Gaurav
4660
- Philipp Burckhardt
4761
- Vinit Pandit
4862

CONTRIBUTORS

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +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>
10+
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
811
Adarsh Palaskar <adarshpalaskar99@gmail.com>
912
Aditya Sapra <adityaework@gmail.com>
1013
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1114
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1215
Ahmed Khaled <kahmd1444@gmail.com>
16+
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1317
Aleksandr <112382387+alextes90@users.noreply.github.com>
1418
Ali Salesi <ali_sal1381@yahoo.com>
1519
Aman Bhansali <bhansali.1@iitj.ac.in>
@@ -29,19 +33,25 @@ Debashis Maharana <debashismaharana7854@gmail.com>
2933
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
3034
Dev Goel <135586571+corsairier@users.noreply.github.com>
3135
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
36+
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
3237
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3338
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3439
Dominik Moritz <domoritz@gmail.com>
3540
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3641
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3742
Frank Kovacs <fran70kk@gmail.com>
43+
GK Bishnoi <gkishan1kyt@gmail.com>
44+
Gaurav <gaurav70380@gmail.com>
45+
Gautam sharma <gautamkrishnasharma1@gmail.com>
3846
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3947
Gunj Joshi <gunjjoshi8372@gmail.com>
4048
Gururaj Gurram <gururajgurram1512@gmail.com>
49+
Harsh <149176984+hrshya@users.noreply.github.com>
4150
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4251
Harshita Kalani <harshitakalani02@gmail.com>
4352
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4453
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
54+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4555
James Gelok <jdgelok@gmail.com>
4656
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
4757
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
@@ -51,9 +61,11 @@ Joey Reed <joeyrreed@gmail.com>
5161
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5262
Joris Labie <joris.labie1@gmail.com>
5363
Justin Dennison <justin1dennison@gmail.com>
64+
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
5465
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5566
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
5667
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
68+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5769
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5870
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5971
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
@@ -91,6 +103,7 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
91103
Ricky Reusser <rsreusser@gmail.com>
92104
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
93105
Rishav <115060907+rishav2404@users.noreply.github.com>
106+
Rishav Tarway <rishavtarway@gmail.com>
94107
Robert Gislason <gztown2216@yahoo.com>
95108
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
96109
Rutam Kathale <138517416+performant23@users.noreply.github.com>
@@ -101,6 +114,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
101114
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
102115
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
103116
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
117+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
104118
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
105119
Shivam Ahir <11shivam00@gmail.com>
106120
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -111,6 +125,7 @@ Snehil Shah <snehilshah.989@gmail.com>
111125
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
112126
Spandan Barve <contact@marsian.dev>
113127
Stephannie Jiménez Gacha <steff456@hotmail.com>
128+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
114129
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
115130
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
116131
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -125,8 +140,13 @@ Vivek Maurya <vm8118134@gmail.com>
125140
Xiaochuan Ye <tap91624@gmail.com>
126141
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
127142
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
143+
Yugal Kaushik <yugalkaushik14@gmail.com>
144+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
145+
ditsu <170345142+ditsus@users.noreply.github.com>
128146
ekambains <bainsinbusiness@gmail.com>
147+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
129148
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
130149
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
150+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
131151
rainn <88160429+AmCodesLame@users.noreply.github.com>
132152
rei2hu <reimu@reimu.ws>

benchmark/benchmark.js

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

2323
var bench = require( '@stdlib/bench-harness' );
24-
var randu = require( '@stdlib/random-base-randu' );
2524
var Float64Array = require( '@stdlib/array-float64' );
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;
@@ -44,9 +44,9 @@ bench( pkg, function benchmark( b ) {
4444
lambda = new Float64Array( len );
4545
k = new Float64Array( len );
4646
for ( i = 0; i < len; i++ ) {
47-
x[ i ] = ( randu()*100.0 ) + EPS;
48-
lambda[ i ] = ( randu()*100.0 ) + EPS;
49-
k[ i ] = ( randu()*100.0 ) + EPS;
47+
x[ i ] = uniform( EPS, 100.0 );
48+
lambda[ i ] = uniform( EPS, 100.0 );
49+
k[ i ] = uniform( EPS, 100.0 );
5050
}
5151

5252
b.tic();
@@ -67,6 +67,7 @@ bench( pkg, function benchmark( b ) {
6767
bench( pkg+':factory', function benchmark( b ) {
6868
var mylogcdf;
6969
var lambda;
70+
var len;
7071
var k;
7172
var x;
7273
var y;
@@ -75,11 +76,15 @@ bench( pkg+':factory', function benchmark( b ) {
7576
lambda = 3.14;
7677
k = 2.25;
7778
mylogcdf = logcdf.factory( k, lambda );
79+
len = 100;
80+
x = new Float64Array( len );
81+
for ( i = 0; i < len; i++ ) {
82+
x[ i ] = uniform( EPS, 100.0 );
83+
}
7884

7985
b.tic();
8086
for ( i = 0; i < b.iterations; i++ ) {
81-
x = ( randu()*100.0 ) + EPS;
82-
y = mylogcdf( x );
87+
y = mylogcdf( x[ i % len ] );
8388
if ( isnan( y ) ) {
8489
b.fail( 'should not return NaN' );
8590
}

benchmark/benchmark.native.js

Lines changed: 4 additions & 4 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;
@@ -53,9 +53,9 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5353
lambda = new Float64Array( len );
5454
k = new Float64Array( len );
5555
for ( i = 0; i < len; i++ ) {
56-
x[ i ] = ( randu()*100.0 ) + EPS;
57-
lambda[ i ] = ( randu()*100.0 ) + EPS;
58-
k[ i ] = ( randu()*100.0 ) + EPS;
56+
x[ i ] = uniform( EPS, 100.0 );
57+
lambda[ i ] = uniform( EPS, 100.0 );
58+
k[ i ] = uniform( EPS, 100.0 );
5959
}
6060

6161
b.tic();

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@stdlib/constants-float64-pinf": "^0.2.2",
6060
"@stdlib/math-base-special-abs": "^0.2.2",
6161
"@stdlib/random-base-randu": "^0.2.1",
62+
"@stdlib/random-base-uniform": "^0.2.1",
6263
"@stdlib/utils-try-require": "^0.2.2",
6364
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
6465
"istanbul": "^0.4.1",

0 commit comments

Comments
 (0)