Skip to content

Commit 3b49967

Browse files
committed
Auto-generated commit
1 parent 06cacc8 commit 3b49967

File tree

5 files changed

+39
-7
lines changed

5 files changed

+39
-7
lines changed

.github/.keepalive

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

CHANGELOG.md

Lines changed: 17 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-03-17)
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 -->
820

921
<section class="commits">
1022

1123
### Commits
1224

1325
<details>
1426

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)_
1528
- [`177f0a0`](https://github.com/stdlib-js/stdlib/commit/177f0a00909c097be05d47107a3e6ab05b865409) - **chore:** consistently use differential entropy for continuous distributions _(by Philipp Burckhardt)_
1629
- [`4a70790`](https://github.com/stdlib-js/stdlib/commit/4a707903dfef7c2b56216000165706497d19a251) - **style:** add missing spaces _(by Philipp Burckhardt)_
1730

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

2639
### Contributors
2740

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

43+
- Athan Reines
44+
- Hemant M Mehta
3045
- Philipp Burckhardt
3146

3247
</section>

CONTRIBUTORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
77
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
8+
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
89
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
910
Abhijit Raut <abhijitmraut8010@gmail.com>
1011
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
@@ -16,6 +17,7 @@ Ahmed Khaled <kahmd1444@gmail.com>
1617
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1718
Aleksandr <112382387+alextes90@users.noreply.github.com>
1819
Ali Salesi <ali_sal1381@yahoo.com>
20+
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
1921
Aman Bhansali <bhansali.1@iitj.ac.in>
2022
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2123
Amit Jimiwal <amitjimiwal45@gmail.com>
@@ -24,6 +26,7 @@ Anshu Kumar <contact.anshukumar@protonmail.com>
2426
Anudeep Sanapala <anudeep0306@gmail.com>
2527
Athan Reines <kgryte@gmail.com>
2628
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
29+
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
2730
Brendan Graetz <bguiz@users.noreply.github.com>
2831
Bruno Fenzl <brunofenzl@gmail.com>
2932
Bryan Elee <rxbryn@gmail.com>
@@ -61,6 +64,7 @@ Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
6164
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
6265
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
6366
James Gelok <jdgelok@gmail.com>
67+
Jay Soni <jaygsoni14@gmail.com>
6468
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
6569
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
6670
Jithin KS <jithinks112@gmail.com>
@@ -78,6 +82,7 @@ Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
7882
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
7983
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
8084
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
85+
MANI <77221000+Eternity0207@users.noreply.github.com>
8186
Manik Sharma <maniksharma.rke@gmail.com>
8287
Manvith M <148960168+manvith2003@users.noreply.github.com>
8388
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -107,7 +112,9 @@ Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
107112
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
108113
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
109114
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
115+
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
110116
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
117+
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
111118
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
112119
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
113120
Ricky Reusser <rsreusser@gmail.com>
@@ -122,6 +129,7 @@ Ryan Seal <splrk@users.noreply.github.com>
122129
Rylan Yang <137365285+rylany27@users.noreply.github.com>
123130
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
124131
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
132+
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
125133
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
126134
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
127135
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>

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 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;
@@ -31,16 +32,23 @@ var entropy = require( './../lib' );
3132
// MAIN //
3233

3334
bench( pkg, function benchmark( b ) {
35+
var len;
3436
var mu;
3537
var c;
3638
var y;
3739
var i;
3840

41+
len = 100;
42+
mu = new Float64Array( len );
43+
c = new Float64Array( len );
44+
for ( i = 0; i < len; i++ ) {
45+
mu[ i ] = uniform( -50.0, 50.0 );
46+
c[ 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-
c = ( randu()*20.0 ) + EPS;
43-
y = entropy( mu, c );
51+
y = entropy( mu[ i % len ], c[ 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
@@ -43,11 +43,13 @@
4343
"@stdlib/math-base-special-ln": "^0.2.4"
4444
},
4545
"devDependencies": {
46+
"@stdlib/array-float64": "^0.2.2",
4647
"@stdlib/constants-float64-eps": "^0.2.2",
4748
"@stdlib/constants-float64-ninf": "^0.2.2",
4849
"@stdlib/constants-float64-pinf": "^0.2.2",
4950
"@stdlib/math-base-special-abs": "^0.2.2",
5051
"@stdlib/random-base-randu": "^0.2.1",
52+
"@stdlib/random-base-uniform": "^0.2.1",
5153
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5254
"istanbul": "^0.4.1",
5355
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)