Skip to content

Commit 81eee4f

Browse files
committed
Auto-generated commit
1 parent 2796e76 commit 81eee4f

File tree

7 files changed

+36
-12
lines changed

7 files changed

+36
-12
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/laplace/mode) 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: 6 additions & 4 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

@@ -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-
[#3716](https://github.com/stdlib-js/stdlib/issues/3716)
25+
[#3716](https://github.com/stdlib-js/stdlib/issues/3716), [#4976](https://github.com/stdlib-js/stdlib/issues/4976)
2626

2727
</section>
2828

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

3535
<details>
3636

37+
- [`e5238bb`](https://github.com/stdlib-js/stdlib/commit/e5238bb96b7138d346ea0db8b535aec64c8a856c) - **bench:** refactor random number generation in `stats/base/dists/laplace` [(#5270)](https://github.com/stdlib-js/stdlib/pull/5270) _(by GK Bishnoi)_
3738
- [`e61b1de`](https://github.com/stdlib-js/stdlib/commit/e61b1dee3334bacf30d213de5b5f1c7868c0753b) - **docs:** clean-up of C docstrings _(by Philipp Burckhardt)_
3839
- [`f3df15f`](https://github.com/stdlib-js/stdlib/commit/f3df15f118d563573f27d2d2b96e35b842f05a18) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_
3940
- [`b275b6f`](https://github.com/stdlib-js/stdlib/commit/b275b6fed269c1f796fae358712ddbbc901bb41d) - **feat:** add C implementation for `stats/base/dists/laplace/mode` [(#4138)](https://github.com/stdlib-js/stdlib/pull/4138) _(by Vivek Maurya, 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+
- GK Bishnoi
5456
- Philipp Burckhardt
5557
- Vivek Maurya
5658

CONTRIBUTORS

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
77
Abhijit Raut <abhijitmraut8010@gmail.com>
8+
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
89
Adarsh Palaskar <adarshpalaskar99@gmail.com>
910
Aditya Sapra <adityaework@gmail.com>
1011
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1112
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1213
Ahmed Khaled <kahmd1444@gmail.com>
14+
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1315
Aleksandr <112382387+alextes90@users.noreply.github.com>
1416
Ali Salesi <ali_sal1381@yahoo.com>
1517
Aman Bhansali <bhansali.1@iitj.ac.in>
@@ -35,13 +37,18 @@ Dominik Moritz <domoritz@gmail.com>
3537
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3638
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3739
Frank Kovacs <fran70kk@gmail.com>
40+
GK Bishnoi <gkishan1kyt@gmail.com>
41+
Gaurav <gaurav70380@gmail.com>
42+
Gautam sharma <gautamkrishnasharma1@gmail.com>
3843
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3944
Gunj Joshi <gunjjoshi8372@gmail.com>
4045
Gururaj Gurram <gururajgurram1512@gmail.com>
46+
Harsh <149176984+hrshya@users.noreply.github.com>
4147
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4248
Harshita Kalani <harshitakalani02@gmail.com>
4349
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4450
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
51+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4552
James Gelok <jdgelok@gmail.com>
4653
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
4754
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
@@ -51,9 +58,11 @@ Joey Reed <joeyrreed@gmail.com>
5158
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5259
Joris Labie <joris.labie1@gmail.com>
5360
Justin Dennison <justin1dennison@gmail.com>
61+
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
5462
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5563
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
5664
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
65+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5766
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5867
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5968
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
@@ -91,6 +100,7 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
91100
Ricky Reusser <rsreusser@gmail.com>
92101
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
93102
Rishav <115060907+rishav2404@users.noreply.github.com>
103+
Rishav Tarway <rishavtarway@gmail.com>
94104
Robert Gislason <gztown2216@yahoo.com>
95105
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
96106
Rutam Kathale <138517416+performant23@users.noreply.github.com>
@@ -101,6 +111,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
101111
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
102112
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
103113
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
114+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
104115
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
105116
Shivam Ahir <11shivam00@gmail.com>
106117
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -111,6 +122,7 @@ Snehil Shah <snehilshah.989@gmail.com>
111122
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
112123
Spandan Barve <contact@marsian.dev>
113124
Stephannie Jiménez Gacha <steff456@hotmail.com>
125+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
114126
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
115127
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
116128
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -125,8 +137,13 @@ Vivek Maurya <vm8118134@gmail.com>
125137
Xiaochuan Ye <tap91624@gmail.com>
126138
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
127139
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
140+
Yugal Kaushik <yugalkaushik14@gmail.com>
141+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
142+
ditsu <170345142+ditsus@users.noreply.github.com>
128143
ekambains <bainsinbusiness@gmail.com>
144+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
129145
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
130146
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
147+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
131148
rainn <88160429+AmCodesLame@users.noreply.github.com>
132149
rei2hu <reimu@reimu.ws>

benchmark/benchmark.js

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

2323
var bench = require( '@stdlib/bench-harness' );
24-
var randu = require( '@stdlib/random-base-randu' );
25-
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2624
var Float64Array = require( '@stdlib/array-float64' );
25+
var uniform = require( '@stdlib/random-base-uniform' );
26+
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2727
var EPS = require( '@stdlib/constants-float64-eps' );
2828
var pkg = require( './../package.json' ).name;
2929
var mode = require( './../lib' );
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242
mu = new Float64Array( len );
4343
scale = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
mu[ i ] = ( randu() * 100.0 ) - 50.0;
46-
scale[ i ] = ( randu()*20.0 ) + EPS;
45+
mu[ i ] = uniform( -50.0, 50.0 );
46+
scale[ i ] = uniform( EPS, 20.0 );
4747
}
4848

4949
b.tic();

benchmark/benchmark.native.js

Lines changed: 3 additions & 3 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 EPS = require( '@stdlib/constants-float64-eps' );
2828
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2929
var tryRequire = require( '@stdlib/utils-try-require' );
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
mu = new Float64Array( len );
5252
scale = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
mu[ i ] = ( randu() * 100.0 ) - 50.0;
55-
scale[ i ] = ( randu()*20.0 ) + EPS;
54+
mu[ i ] = uniform( -50.0, 50.0 );
55+
scale[ i ] = uniform( EPS, 20.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/constants-float64-pinf": "^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)