Skip to content

Commit 9d8f392

Browse files
committed
Auto-generated commit
1 parent cc34a7e commit 9d8f392

File tree

7 files changed

+44
-9
lines changed

7 files changed

+44
-9
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/.keepalive

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

.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 (2025-01-13)
7+
## Unreleased (2025-02-18)
8+
9+
<section class="issues">
10+
11+
### Closed Issues
12+
13+
This release closes the following issue:
14+
15+
[#4979](https://github.com/stdlib-js/stdlib/issues/4979)
16+
17+
</section>
18+
19+
<!-- /.issues -->
820

921
<section class="commits">
1022

1123
### Commits
1224

1325
<details>
1426

27+
- [`ae08a29`](https://github.com/stdlib-js/stdlib/commit/ae08a29eb928357ae97532f0c3f398b0fef58ebd) - **bench:** refactor random number generation in `stats/base/dists/lognormal` [(#5164)](https://github.com/stdlib-js/stdlib/pull/5164) _(by Saurabh Singh)_
1528
- [`4a70790`](https://github.com/stdlib-js/stdlib/commit/4a707903dfef7c2b56216000165706497d19a251) - **style:** add missing spaces _(by Philipp Burckhardt)_
1629

1730
</details>
@@ -24,9 +37,10 @@
2437

2538
### Contributors
2639

27-
A total of 1 person contributed to this release. Thank you to this contributor:
40+
A total of 2 people contributed to this release. Thank you to the following contributors:
2841

2942
- Philipp Burckhardt
43+
- Saurabh Singh
3044

3145
</section>
3246

CONTRIBUTORS

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
2727
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2828
Debashis Maharana <debashismaharana7854@gmail.com>
2929
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
30+
Dev Goel <135586571+corsairier@users.noreply.github.com>
3031
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
3132
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3233
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3334
Dominik Moritz <domoritz@gmail.com>
3435
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3536
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3637
Frank Kovacs <fran70kk@gmail.com>
38+
GK Bishnoi <gkishan1kyt@gmail.com>
39+
Gaurav <gaurav70380@gmail.com>
3740
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3841
Gunj Joshi <gunjjoshi8372@gmail.com>
39-
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
42+
Gururaj Gurram <gururajgurram1512@gmail.com>
43+
Harsh <149176984+hrshya@users.noreply.github.com>
4044
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4145
Harshita Kalani <harshitakalani02@gmail.com>
4246
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
@@ -62,6 +66,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
6266
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6367
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6468
Milan Raj <rajsite@users.noreply.github.com>
69+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6570
Mohammad Kaif <mdkaifprofession@gmail.com>
6671
Momtchil Momtchev <momtchil@momtchev.com>
6772
Muhammad Haris <harriskhan047@outlook.com>
@@ -99,6 +104,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
99104
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
100105
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
101106
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
107+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
102108
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
103109
Shivam Ahir <11shivam00@gmail.com>
104110
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -123,6 +129,9 @@ Vivek Maurya <vm8118134@gmail.com>
123129
Xiaochuan Ye <tap91624@gmail.com>
124130
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
125131
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
132+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
133+
ekambains <bainsinbusiness@gmail.com>
126134
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
135+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
127136
rainn <88160429+AmCodesLame@users.noreply.github.com>
128137
rei2hu <reimu@reimu.ws>

benchmark/benchmark.js

Lines changed: 12 additions & 4 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,15 +33,22 @@ var stdev = require( './../lib' );
3233

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

41+
len = 100;
42+
mu = new Float64Array( len );
43+
sigma = new Float64Array( len );
44+
for ( i = 0; i < len; i++ ) {
45+
mu[ i ] = uniform( -50.0, 50.0 );
46+
sigma[ i ] = uniform( EPS, 20.0 );
47+
}
48+
3949
b.tic();
4050
for ( i = 0; i < b.iterations; i++ ) {
41-
mu = ( randu()*100.0 ) - 50.0;
42-
sigma = ( randu()*20.0 ) + EPS;
43-
y = stdev( mu, sigma );
51+
y = stdev( mu[ i % len ], sigma[ i % len ] );
4452
if ( isnan( y ) ) {
4553
b.fail( 'should not return NaN' );
4654
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@
4242
"@stdlib/math-base-special-sqrt": "^0.2.2"
4343
},
4444
"devDependencies": {
45+
"@stdlib/array-float64": "^0.2.2",
4546
"@stdlib/constants-float64-eps": "^0.2.2",
4647
"@stdlib/constants-float64-ninf": "^0.2.2",
4748
"@stdlib/constants-float64-pinf": "^0.2.2",
4849
"@stdlib/math-base-special-abs": "^0.2.2",
4950
"@stdlib/random-base-randu": "^0.2.1",
51+
"@stdlib/random-base-uniform": "^0.2.1",
5052
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5153
"istanbul": "^0.4.1",
5254
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)