Skip to content

Commit a365153

Browse files
committed
Auto-generated commit
1 parent cdc882c commit a365153

File tree

9 files changed

+74
-15
lines changed

9 files changed

+74
-15
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}]

.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/quantile) 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,14 +4,27 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-12-29)
7+
## Unreleased (2025-03-05)
8+
9+
<section class="issues">
10+
11+
### Closed Issues
12+
13+
This release closes the following issue:
14+
15+
[#4992](https://github.com/stdlib-js/stdlib/issues/4992)
16+
17+
</section>
18+
19+
<!-- /.issues -->
820

921
<section class="commits">
1022

1123
### Commits
1224

1325
<details>
1426

27+
- [`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)_
1528
- [`d88905f`](https://github.com/stdlib-js/stdlib/commit/d88905fbd9006bf223db7ce4959b46f02cf7d73e) - **docs:** fix parameter descriptions in Weibull distribution packages _(by Philipp Burckhardt)_
1629
- [`b87254d`](https://github.com/stdlib-js/stdlib/commit/b87254d4535a3b90bf3d0068750ed6e9ca5dbc85) - **docs:** fix parameter descriptions in Weibull distribution packages _(by Philipp Burckhardt)_
1730

@@ -25,8 +38,9 @@
2538

2639
### Contributors
2740

28-
A total of 1 person contributed to this release. Thank you to this contributor:
41+
A total of 2 people contributed to this release. Thank you to the following contributors:
2942

43+
- Gaurav
3044
- Philipp Burckhardt
3145

3246
</section>

CONTRIBUTORS

Lines changed: 28 additions & 2 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>
@@ -27,19 +31,27 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
2731
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2832
Debashis Maharana <debashismaharana7854@gmail.com>
2933
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
34+
Dev Goel <135586571+corsairier@users.noreply.github.com>
35+
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
36+
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
3037
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3138
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3239
Dominik Moritz <domoritz@gmail.com>
3340
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3441
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3542
Frank Kovacs <fran70kk@gmail.com>
43+
GK Bishnoi <gkishan1kyt@gmail.com>
44+
Gaurav <gaurav70380@gmail.com>
45+
Gautam sharma <gautamkrishnasharma1@gmail.com>
3646
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3747
Gunj Joshi <gunjjoshi8372@gmail.com>
38-
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
48+
Gururaj Gurram <gururajgurram1512@gmail.com>
49+
Harsh <149176984+hrshya@users.noreply.github.com>
3950
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4051
Harshita Kalani <harshitakalani02@gmail.com>
4152
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4253
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
54+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4355
James Gelok <jdgelok@gmail.com>
4456
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
4557
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
@@ -49,8 +61,11 @@ Joey Reed <joeyrreed@gmail.com>
4961
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5062
Joris Labie <joris.labie1@gmail.com>
5163
Justin Dennison <justin1dennison@gmail.com>
64+
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
65+
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5266
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
5367
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
68+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5469
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5570
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5671
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
@@ -60,6 +75,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
6075
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6176
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6277
Milan Raj <rajsite@users.noreply.github.com>
78+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6379
Mohammad Kaif <mdkaifprofession@gmail.com>
6480
Momtchil Momtchev <momtchil@momtchev.com>
6581
Muhammad Haris <harriskhan047@outlook.com>
@@ -87,6 +103,7 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
87103
Ricky Reusser <rsreusser@gmail.com>
88104
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
89105
Rishav <115060907+rishav2404@users.noreply.github.com>
106+
Rishav Tarway <rishavtarway@gmail.com>
90107
Robert Gislason <gztown2216@yahoo.com>
91108
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
92109
Rutam Kathale <138517416+performant23@users.noreply.github.com>
@@ -97,6 +114,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
97114
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
98115
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
99116
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
117+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
100118
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
101119
Shivam Ahir <11shivam00@gmail.com>
102120
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -107,6 +125,7 @@ Snehil Shah <snehilshah.989@gmail.com>
107125
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
108126
Spandan Barve <contact@marsian.dev>
109127
Stephannie Jiménez Gacha <steff456@hotmail.com>
128+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
110129
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
111130
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
112131
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -117,10 +136,17 @@ UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
117136
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
118137
Varad Gupta <varadgupta21@gmail.com>
119138
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
120-
Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
139+
Vivek Maurya <vm8118134@gmail.com>
121140
Xiaochuan Ye <tap91624@gmail.com>
122141
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
123142
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>
146+
ekambains <bainsinbusiness@gmail.com>
147+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
124148
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
149+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
150+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
125151
rainn <88160429+AmCodesLame@users.noreply.github.com>
126152
rei2hu <reimu@reimu.ws>

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2024 The Stdlib Authors.
1+
Copyright (c) 2016-2025 The Stdlib Authors.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ See [LICENSE][stdlib-license].
222222

223223
## Copyright
224224

225-
Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
225+
Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
226226

227227
</section>
228228

benchmark/benchmark.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
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' );
25+
var Float64Array = require( '@stdlib/array-float64' );
2526
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2627
var EPS = require( '@stdlib/constants-float64-eps' );
2728
var pkg = require( './../package.json' ).name;
@@ -32,17 +33,25 @@ var quantile = require( './../lib' );
3233

3334
bench( pkg, function benchmark( b ) {
3435
var lambda;
36+
var len;
3537
var k;
3638
var p;
3739
var y;
3840
var i;
3941

42+
len = 100;
43+
p = new Float64Array( len );
44+
lambda = new Float64Array( len );
45+
k = new Float64Array( len );
46+
for ( i = 0; i < len; i++ ) {
47+
p[ i ] = uniform( 0.0, 1.0 );
48+
lambda[ i ] = uniform( EPS, 100.0 );
49+
k[ i ] = uniform( EPS, 100.0 );
50+
}
51+
4052
b.tic();
4153
for ( i = 0; i < b.iterations; i++ ) {
42-
p = randu();
43-
lambda = ( randu()*100.0 ) + EPS;
44-
k = ( randu()*100.0 ) + EPS;
45-
y = quantile( p, k, lambda );
54+
y = quantile( p[ i % len ], k[ i % len ], lambda[ i % len ] );
4655
if ( isnan( y ) ) {
4756
b.fail( 'should not return NaN' );
4857
}
@@ -58,6 +67,7 @@ bench( pkg, function benchmark( b ) {
5867
bench( pkg+':factory', function benchmark( b ) {
5968
var myquantile;
6069
var lambda;
70+
var len;
6171
var k;
6272
var p;
6373
var y;
@@ -66,11 +76,15 @@ bench( pkg+':factory', function benchmark( b ) {
6676
lambda = 3.14;
6777
k = 2.25;
6878
myquantile = quantile.factory( k, lambda );
79+
len = 100;
80+
p = new Float64Array( len );
81+
for ( i = 0; i < len; i++ ) {
82+
p[ i ] = uniform( 0.0, 1.0 );
83+
}
6984

7085
b.tic();
7186
for ( i = 0; i < b.iterations; i++ ) {
72-
p = randu();
73-
y = myquantile( p );
87+
y = myquantile( p[ i % len ] );
7488
if ( isnan( y ) ) {
7589
b.fail( 'should not return NaN' );
7690
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@
4444
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2"
4545
},
4646
"devDependencies": {
47+
"@stdlib/array-float64": "^0.2.2",
4748
"@stdlib/constants-float64-eps": "^0.2.2",
4849
"@stdlib/constants-float64-ninf": "^0.2.2",
4950
"@stdlib/constants-float64-pinf": "^0.2.2",
5051
"@stdlib/math-base-special-abs": "^0.2.2",
5152
"@stdlib/random-base-randu": "^0.2.1",
53+
"@stdlib/random-base-uniform": "^0.2.1",
5254
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5355
"istanbul": "^0.4.1",
5456
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)