Skip to content

Commit 0327544

Browse files
committed
Auto-generated commit
1 parent cb20773 commit 0327544

5 files changed

Lines changed: 43 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-04-01)
7+
## Unreleased (2025-05-30)
88

99
<section class="features">
1010

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

3535
<details>
3636

37+
- [`a3a900c`](https://github.com/stdlib-js/stdlib/commit/a3a900cc12d70440163c9a46a07cea796913e89e) - **docs:** replace manual `for` loop in examples [(#7123)](https://github.com/stdlib-js/stdlib/pull/7123) _(by Harsh)_
3738
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3839
- [`911e179`](https://github.com/stdlib-js/stdlib/commit/911e1793885aced96a177f2ea54300503b2c2a26) - **docs:** clean-up of C docstrings _(by Philipp Burckhardt)_
3940
- [`1fc3918`](https://github.com/stdlib-js/stdlib/commit/1fc3918810a556d2593f4ec8a0764dce88a519fc) - **bench:** refactor random number generation in `stats/base/dists/degenerate` [(#4862)](https://github.com/stdlib-js/stdlib/pull/4862) _(by Karan Anand)_
@@ -50,9 +51,10 @@ This release closes the following issue:
5051

5152
### Contributors
5253

53-
A total of 3 people contributed to this release. Thank you to the following contributors:
54+
A total of 4 people contributed to this release. Thank you to the following contributors:
5455

5556
- Aayush Khanna
57+
- Harsh
5658
- Karan Anand
5759
- Philipp Burckhardt
5860

CONTRIBUTORS

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,26 @@ Dev Goel <135586571+corsairier@users.noreply.github.com>
4343
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
4444
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
4545
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
46+
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
4647
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
4748
Dominic Lim <46486515+domlimm@users.noreply.github.com>
4849
Dominik Moritz <domoritz@gmail.com>
4950
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
5051
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
5152
Frank Kovacs <fran70kk@gmail.com>
5253
GK Bishnoi <gkishan1kyt@gmail.com>
54+
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5355
Gaurav <gaurav70380@gmail.com>
5456
Gautam sharma <gautamkrishnasharma1@gmail.com>
57+
Girish Garg <garggirish2020@gmail.com>
5558
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5659
Gunj Joshi <gunjjoshi8372@gmail.com>
5760
Gururaj Gurram <gururajgurram1512@gmail.com>
5861
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
59-
Harsh <149176984+hrshya@users.noreply.github.com>
62+
Harsh <harshyadav6078@gmail.com>
6063
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
6164
Harshita Kalani <harshitakalani02@gmail.com>
65+
Hemang Choudhary <coehemang@gmail.com>
6266
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
6367
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
6468
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
@@ -75,16 +79,19 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
7579
Joris Labie <joris.labie1@gmail.com>
7680
Justin Dennison <justin1dennison@gmail.com>
7781
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
78-
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
82+
Karan Anand <anandkarancompsci@gmail.com>
83+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
7984
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8085
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
8186
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
8287
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8388
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8489
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8590
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
91+
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
8692
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
8793
MANI <77221000+Eternity0207@users.noreply.github.com>
94+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
8895
Manik Sharma <maniksharma.rke@gmail.com>
8996
Manvith M <148960168+manvith2003@users.noreply.github.com>
9097
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -95,10 +102,14 @@ Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
95102
Mohammad Kaif <mdkaifprofession@gmail.com>
96103
Momtchil Momtchev <momtchil@momtchev.com>
97104
Muhammad Haris <harriskhan047@outlook.com>
105+
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
106+
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
98107
Naresh Jagadeesan <naresh.naresh000@gmail.com>
99108
Naveen Kumar <stupiddint@gmail.com>
100109
Neeraj Pathak <neerajrpathak710@gmail.com>
110+
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
101111
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
112+
Nishant singh <38534128+Nishantsingh11@users.noreply.github.com>
102113
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
103114
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
104115
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
@@ -111,8 +122,10 @@ Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
111122
Pranav Goswami <pranavchiku11@gmail.com>
112123
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
113124
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
125+
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
114126
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
115127
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
128+
Pravesh Kunwar <praveshkunwar04@gmail.com>
116129
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
117130
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
118131
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
@@ -126,12 +139,14 @@ Rishav <115060907+rishav2404@users.noreply.github.com>
126139
Rishav Tarway <rishavtarway@gmail.com>
127140
Robert Gislason <gztown2216@yahoo.com>
128141
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
142+
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
129143
Rutam Kathale <138517416+performant23@users.noreply.github.com>
130144
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
131145
Ryan Seal <splrk@users.noreply.github.com>
132146
Rylan Yang <137365285+rylany27@users.noreply.github.com>
133147
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
134148
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
149+
Sachin Raj <120590207+schnrj@users.noreply.github.com>
135150
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
136151
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
137152
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
@@ -152,14 +167,17 @@ Spandan Barve <contact@marsian.dev>
152167
Stephannie Jiménez Gacha <steff456@hotmail.com>
153168
Suhaib Ilahi <suhaib.elahi87@gmail.com>
154169
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
170+
Swapnil Hajare <69076366+Swapnil-2502@users.noreply.github.com>
155171
Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
156172
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
157173
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
158174
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
175+
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
159176
Utkarsh <http://utkarsh11105@gmail.com>
160177
Utkarsh Raj <rajutkarsh2505@gmail.com>
161178
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
162179
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
180+
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
163181
Varad Gupta <varadgupta21@gmail.com>
164182
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
165183
Vivek Maurya <vm8118134@gmail.com>
@@ -168,12 +186,15 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
168186
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
169187
Yugal Kaushik <yugalkaushik14@gmail.com>
170188
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
189+
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
171190
ditsu <170345142+ditsus@users.noreply.github.com>
172191
ekambains <bainsinbusiness@gmail.com>
173192
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
193+
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
174194
lohithganni <116790357+lohithganni@users.noreply.github.com>
175195
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
176196
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
177197
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
178198
rainn <88160429+AmCodesLame@users.noreply.github.com>
179199
rei2hu <reimu@reimu.ws>
200+
zhanggy <geodaoyu@foxmail.com>

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,16 @@ v = variance( NaN );
126126
<!-- eslint no-undef: "error" -->
127127

128128
```javascript
129-
var randu = require( '@stdlib/random-base-randu' );
129+
var uniform = require( '@stdlib/random-array-uniform' );
130+
var logEachMap = require( '@stdlib/console-log-each-map' );
130131
var variance = require( '@stdlib/stats-base-dists-degenerate-variance' );
131132

132-
var mu;
133-
var v;
134-
var i;
133+
var opts = {
134+
'dtype': 'float64'
135+
};
136+
var mu = uniform( 10, 0.0, 1.0, opts );
135137

136-
for ( i = 0; i < 10; i++ ) {
137-
mu = randu();
138-
v = variance( mu );
139-
console.log( 'µ: %d, Var(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
140-
}
138+
logEachMap( 'µ: %0.4f, Var(X;µ): %0.4f', mu, variance );
141139
```
142140

143141
</section>

examples/index.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random-base-randu' );
21+
var uniform = require( '@stdlib/random-array-uniform' );
22+
var logEachMap = require( '@stdlib/console-log-each-map' );
2223
var variance = require( './../lib' );
2324

24-
var mu;
25-
var v;
26-
var i;
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var mu = uniform( 10, 0.0, 1.0, opts );
2729

28-
for ( i = 0; i < 10; i++ ) {
29-
mu = randu();
30-
v = variance( mu );
31-
console.log( 'µ: %d, Var(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
32-
}
30+
logEachMap( 'µ: %0.4f, Var(X;µ): %0.4f', mu, variance );

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
},
4747
"devDependencies": {
4848
"@stdlib/array-float64": "^0.2.2",
49-
"@stdlib/random-base-randu": "^0.2.1",
49+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
50+
"@stdlib/random-array-uniform": "^0.2.1",
5051
"@stdlib/random-base-uniform": "^0.2.1",
5152
"@stdlib/utils-try-require": "^0.2.2",
5253
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)