Skip to content

Commit 26fb852

Browse files
committed
Auto-generated commit
1 parent bbb8e4f commit 26fb852

File tree

7 files changed

+120
-11
lines changed

7 files changed

+120
-11
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.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/levy/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: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,53 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-03-22)
8+
9+
<section class="issues">
10+
11+
### Closed Issues
12+
13+
This release closes the following issue:
14+
15+
[#4977](https://github.com/stdlib-js/stdlib/issues/4977)
16+
17+
</section>
18+
19+
<!-- /.issues -->
20+
21+
<section class="commits">
22+
23+
### Commits
24+
25+
<details>
26+
27+
- [`73050cb`](https://github.com/stdlib-js/stdlib/commit/73050cb11de45fd04b8e59c5df8ef30f891dba07) - **bench:** refactor random number generation in `stats/base/dists/levy` [(#6044)](https://github.com/stdlib-js/stdlib/pull/6044) _(by Hemant M Mehta, Athan Reines)_
28+
29+
</details>
30+
31+
</section>
32+
33+
<!-- /.commits -->
34+
35+
<section class="contributors">
36+
37+
### Contributors
38+
39+
A total of 2 people contributed to this release. Thank you to the following contributors:
40+
41+
- Athan Reines
42+
- Hemant M Mehta
43+
44+
</section>
45+
46+
<!-- /.contributors -->
47+
48+
</section>
49+
50+
<!-- /.release -->
51+
552
<section class="release" id="v0.2.2">
653

754
## 0.2.2 (2024-07-28)

CONTRIBUTORS

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@
44

55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
7+
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
8+
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
9+
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
710
Abhijit Raut <abhijitmraut8010@gmail.com>
11+
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
812
Adarsh Palaskar <adarshpalaskar99@gmail.com>
913
Aditya Sapra <adityaework@gmail.com>
1014
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1115
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1216
Ahmed Khaled <kahmd1444@gmail.com>
17+
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1318
Aleksandr <112382387+alextes90@users.noreply.github.com>
1419
Ali Salesi <ali_sal1381@yahoo.com>
20+
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
1521
Aman Bhansali <bhansali.1@iitj.ac.in>
22+
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
1623
Amit Jimiwal <amitjimiwal45@gmail.com>
24+
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
25+
Anshu Kumar <contact.anshukumar@protonmail.com>
1726
Anudeep Sanapala <anudeep0306@gmail.com>
1827
Athan Reines <kgryte@gmail.com>
1928
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
29+
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
2030
Brendan Graetz <bguiz@users.noreply.github.com>
2131
Bruno Fenzl <brunofenzl@gmail.com>
2232
Bryan Elee <rxbryn@gmail.com>
@@ -26,23 +36,35 @@ Dan Rose <danoftheroses@gmail.com>
2636
Daniel Killenberger <daniel.killenberger@gmail.com>
2737
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2838
Debashis Maharana <debashismaharana7854@gmail.com>
39+
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
2940
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
3041
Dev Goel <135586571+corsairier@users.noreply.github.com>
42+
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
3143
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
44+
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
3245
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3346
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3447
Dominik Moritz <domoritz@gmail.com>
3548
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3649
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3750
Frank Kovacs <fran70kk@gmail.com>
51+
GK Bishnoi <gkishan1kyt@gmail.com>
52+
Gaurav <gaurav70380@gmail.com>
53+
Gautam sharma <gautamkrishnasharma1@gmail.com>
3854
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3955
Gunj Joshi <gunjjoshi8372@gmail.com>
40-
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
56+
Gururaj Gurram <gururajgurram1512@gmail.com>
57+
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
58+
Harsh <149176984+hrshya@users.noreply.github.com>
4159
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4260
Harshita Kalani <harshitakalani02@gmail.com>
61+
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
4362
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4463
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
64+
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
65+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4566
James Gelok <jdgelok@gmail.com>
67+
Jay Soni <jaygsoni14@gmail.com>
4668
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
4769
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
4870
Jithin KS <jithinks112@gmail.com>
@@ -51,55 +73,67 @@ Joey Reed <joeyrreed@gmail.com>
5173
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5274
Joris Labie <joris.labie1@gmail.com>
5375
Justin Dennison <justin1dennison@gmail.com>
76+
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
5477
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5578
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
79+
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
5680
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
81+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5782
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5883
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5984
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
85+
MANI <77221000+Eternity0207@users.noreply.github.com>
6086
Manik Sharma <maniksharma.rke@gmail.com>
6187
Manvith M <148960168+manvith2003@users.noreply.github.com>
6288
Marcus Fantham <mfantham@users.noreply.github.com>
6389
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6490
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6591
Milan Raj <rajsite@users.noreply.github.com>
92+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6693
Mohammad Kaif <mdkaifprofession@gmail.com>
6794
Momtchil Momtchev <momtchil@momtchev.com>
6895
Muhammad Haris <harriskhan047@outlook.com>
6996
Naresh Jagadeesan <naresh.naresh000@gmail.com>
7097
Naveen Kumar <stupiddint@gmail.com>
7198
Neeraj Pathak <neerajrpathak710@gmail.com>
7299
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
100+
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
73101
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
74102
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
75103
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
76104
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
77105
Ori Miles <97595296+orimiles5@users.noreply.github.com>
78106
Philipp Burckhardt <pburckhardt@outlook.com>
79107
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
80-
Pranav Goswami <goswami.4@iitj.ac.in>
108+
Pranav Goswami <pranavchiku11@gmail.com>
81109
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
82110
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
83111
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
84112
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
85113
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
86114
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
115+
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
87116
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
117+
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
88118
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
89119
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
90120
Ricky Reusser <rsreusser@gmail.com>
91121
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
92122
Rishav <115060907+rishav2404@users.noreply.github.com>
123+
Rishav Tarway <rishavtarway@gmail.com>
93124
Robert Gislason <gztown2216@yahoo.com>
94125
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
95126
Rutam Kathale <138517416+performant23@users.noreply.github.com>
96127
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
97128
Ryan Seal <splrk@users.noreply.github.com>
98129
Rylan Yang <137365285+rylany27@users.noreply.github.com>
130+
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
99131
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
132+
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
100133
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
101134
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
102135
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
136+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
103137
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
104138
Shivam Ahir <11shivam00@gmail.com>
105139
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -110,7 +144,9 @@ Snehil Shah <snehilshah.989@gmail.com>
110144
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
111145
Spandan Barve <contact@marsian.dev>
112146
Stephannie Jiménez Gacha <steff456@hotmail.com>
147+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
113148
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
149+
Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
114150
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
115151
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
116152
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
@@ -124,6 +160,13 @@ Vivek Maurya <vm8118134@gmail.com>
124160
Xiaochuan Ye <tap91624@gmail.com>
125161
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
126162
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
163+
Yugal Kaushik <yugalkaushik14@gmail.com>
164+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
165+
ditsu <170345142+ditsus@users.noreply.github.com>
166+
ekambains <bainsinbusiness@gmail.com>
167+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
127168
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
169+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
170+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
128171
rainn <88160429+AmCodesLame@users.noreply.github.com>
129172
rei2hu <reimu@reimu.ws>

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 Float64Array = require( '@stdlib/array-float64' );
25+
var uniform = require( '@stdlib/random-base-uniform' );
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 logcdf = require( './../lib' );
3233

3334
bench( pkg, function benchmark( b ) {
3435
var scale;
36+
var len;
3537
var mu;
3638
var x;
3739
var y;
3840
var i;
3941

42+
len = 100;
43+
mu = new Float64Array( len );
44+
scale = new Float64Array( len );
45+
x = new Float64Array( len );
46+
for ( i = 0; i < len; i++ ) {
47+
mu[ i ] = uniform( -50.0, 50.0 );
48+
x[ i ] = uniform( mu[ i ], 100.0 );
49+
scale[ i ] = uniform( EPS, 20.0 );
50+
}
51+
4052
b.tic();
4153
for ( i = 0; i < b.iterations; i++ ) {
42-
mu = ( randu()*100.0 ) - 50.0;
43-
x = ( randu()*100.0 ) + mu;
44-
scale = ( randu()*20.0 ) + EPS;
45-
y = logcdf( x, mu, scale );
54+
y = logcdf( x[ i % len ], mu[ i % len ], scale[ i % len ] );
4655
if ( isnan( y ) ) {
4756
b.fail( 'should not return NaN' );
4857
}
@@ -58,19 +67,24 @@ bench( pkg, function benchmark( b ) {
5867
bench( pkg+':factory', function benchmark( b ) {
5968
var mylogcdf;
6069
var scale;
70+
var len;
6171
var mu;
6272
var x;
6373
var y;
6474
var i;
6575

6676
mu = 0.0;
77+
len = 100;
6778
scale = 1.5;
6879
mylogcdf = logcdf.factory( mu, scale );
80+
x = new Float64Array( len );
81+
for ( i = 0; i < len; i++ ) {
82+
x[ i ] = uniform( 0.0, 4.0 );
83+
}
6984

7085
b.tic();
7186
for ( i = 0; i < b.iterations; i++ ) {
72-
x = randu() * 4.0;
73-
y = mylogcdf( x );
87+
y = mylogcdf( x[ 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
@@ -46,10 +46,12 @@
4646
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2"
4747
},
4848
"devDependencies": {
49+
"@stdlib/array-float64": "^0.2.2",
4950
"@stdlib/constants-float64-eps": "^0.2.2",
5051
"@stdlib/constants-float64-pinf": "^0.2.2",
5152
"@stdlib/math-base-special-abs": "^0.2.2",
5253
"@stdlib/random-base-randu": "^0.2.1",
54+
"@stdlib/random-base-uniform": "^0.2.1",
5355
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5456
"istanbul": "^0.4.1",
5557
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)