Skip to content

Commit 0ecccff

Browse files
committed
Auto-generated commit
1 parent c10f016 commit 0ecccff

File tree

6 files changed

+89
-79
lines changed

6 files changed

+89
-79
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
.cursor
191192
.cursorignore
193+
.windsurfrules
194+
.clinerules
192195

193196
# AI coding agents #
194197
####################
195-
claude.md
198+
CLAUDE.md
199+
GEMINI.md

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-09-07)
7+
## Unreleased (2025-10-20)
88

99
<section class="features">
1010

@@ -34,14 +34,15 @@ A total of 2 issues were closed in this release:
3434

3535
<details>
3636

37+
- [`5bbd209`](https://github.com/stdlib-js/stdlib/commit/5bbd209871c06aaf7d6347c6eb7696af6128ee1a) - **docs:** replace manual `for` loop in examples [(#8257)](https://github.com/stdlib-js/stdlib/pull/8257) _(by Harsh Yadav)_
3738
- [`e2efe32`](https://github.com/stdlib-js/stdlib/commit/e2efe32914d0d9dae5da34e6f7e7bf7655430710) - **chore:** rename exported variable in d.ts file to match name used in example code _(by Philipp Burckhardt)_
3839
- [`e678757`](https://github.com/stdlib-js/stdlib/commit/e678757c9a62631a907278ec13a5d7b27c0f1e15) - **docs:** fix return annotation values _(by Philipp Burckhardt)_
3940
- [`fc438e0`](https://github.com/stdlib-js/stdlib/commit/fc438e0edbad0689d6923d6f3edb959b96597662) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
4041
- [`07f7c05`](https://github.com/stdlib-js/stdlib/commit/07f7c0522c73e6ad9505e1d45035ae439344200d) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
4142
- [`9c21fd2`](https://github.com/stdlib-js/stdlib/commit/9c21fd20ef8b8a6a88abb96d80ea6d8e4c5434eb) - **test:** use .strictEqual() instead of .equal() _(by Philipp Burckhardt)_
4243
- [`a9c5bd5`](https://github.com/stdlib-js/stdlib/commit/a9c5bd530e3080d8fd55586b8b05c4c3a31c60b7) - **chore:** clean-up _(by Athan Reines)_
4344
- [`09c74b0`](https://github.com/stdlib-js/stdlib/commit/09c74b0526129f32667ef3101c9ccd91acaf924b) - **feat:** add C implementation for `stats/base/dists/laplace/logcdf` [(#4422)](https://github.com/stdlib-js/stdlib/pull/4422) _(by Dhruv Arvind Singh, Philipp Burckhardt, stdlib-bot)_
44-
- [`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)_
45+
- [`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 Gopi Kishan)_
4546

4647
</details>
4748

@@ -53,11 +54,12 @@ A total of 2 issues were closed in this release:
5354

5455
### Contributors
5556

56-
A total of 4 people contributed to this release. Thank you to the following contributors:
57+
A total of 5 people contributed to this release. Thank you to the following contributors:
5758

5859
- Athan Reines
5960
- Dhruv Arvind Singh
60-
- GK Bishnoi
61+
- Gopi Kishan
62+
- Harsh Yadav
6163
- Philipp Burckhardt
6264

6365
</section>

CONTRIBUTORS

Lines changed: 57 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <jain.aadishj@gmail.com>
6-
Aarya Balwadkar <142713127+AaryaBalwadkar@users.noreply.github.com>
6+
Aarya Balwadkar <aaryabalwadkar2005@gmail.com>
77
Aayush Khanna <aayushiitbhu23@gmail.com>
88
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
99
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
@@ -20,97 +20,104 @@ Ahmed Khaled <kahmd1444@gmail.com>
2020
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
2121
Aleksandr <112382387+alextes90@users.noreply.github.com>
2222
Ali Salesi <ali_sal1381@yahoo.com>
23-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
24-
Aman Bhansali <bhansali.1@iitj.ac.in>
25-
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
26-
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
24+
Aman Bhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
25+
Aman Bhansali <amanbhansali65@gmail.com>
26+
Amisha Chhajed <amishhhaaaa@gmail.com>
2727
Amit Jimiwal <amitjimiwal45@gmail.com>
28-
Anmol Sah <113588714+anmolsah@users.noreply.github.com>
28+
Anmol Sah <annifind010@gmail.com>
2929
Annamalai Prabu <apfossdev@gmail.com>
30-
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
3130
Anshu Kumar <contact.anshukumar@protonmail.com>
31+
Anshuman Singh <anshu.1239.as@gmail.com>
3232
Anudeep Sanapala <anudeep0306@gmail.com>
3333
Arihant Pal <arihant0pal@gmail.com>
3434
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
35-
AryanJ18 <18aryanj2006@gmail.com>
35+
Aryan J <18aryanj2006@gmail.com>
3636
Athan Reines <kgryte@gmail.com>
37-
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
38-
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
39-
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
37+
Atharva Patil <anpatil.1223@gmail.com>
38+
Bhavishy Agrawal <bhavishyrocker2801@gmail.com>
39+
Bhupesh Kumar <bkumar_be23@thapar.edu>
4040
Brendan Graetz <bguiz@users.noreply.github.com>
4141
Bruno Fenzl <brunofenzl@gmail.com>
4242
Bryan Elee <rxbryn@gmail.com>
4343
Chinmay Joshi <86140365+JawHawk@users.noreply.github.com>
4444
Christopher Dambamuromo <chridam@gmail.com>
45-
DUDHAT HEMIL PRAVINKUMAR <138382078+Hemil36@users.noreply.github.com>
4645
Dan Rose <danoftheroses@gmail.com>
4746
Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4847
Daniel Killenberger <daniel.killenberger@gmail.com>
4948
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
5049
Debashis Maharana <debashismaharana7854@gmail.com>
51-
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
50+
Deep Trivedi <deepbtrivedi04@gmail.com>
5251
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
5352
Deepak Singh <negid0253@gmail.com>
54-
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
53+
Desh Deepak Kant <deshdeepakkant@gmail.com>
5554
Dev Goel <135586571+corsairier@users.noreply.github.com>
56-
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
55+
Devshree Bhati <147095250+devshree-bhati@users.noreply.github.com>
56+
Dhanyabad Behera <dhanyabadbehera@gmail.com>
5757
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
58-
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
59-
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
60-
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
58+
Dhruvil Mehta <dhruvilmehta2606@gmail.com>
59+
Dipjyoti Das <dipexplorerid23@gmail.com>
60+
Ditsu S <170345142+ditsus@users.noreply.github.com>
61+
Divyansh Seth <divyanshseth08@gmail.com>
6162
Dominic Lim <46486515+domlimm@users.noreply.github.com>
6263
Dominik Moritz <domoritz@gmail.com>
6364
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
64-
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
65+
Dudhat Hemil Pravinkumar <138382078+Hemil36@users.noreply.github.com>
66+
Ekampreet Singh Bains <bainsinbusiness@gmail.com>
67+
Eunice Sim <77243938+EuniceSim142@users.noreply.github.com>
68+
Fadio <48636283+fadiothman22@users.noreply.github.com>
6569
Frank Kovacs <fran70kk@gmail.com>
66-
GK Bishnoi <gkishan1kyt@gmail.com>
67-
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
68-
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Jadhav <gaurav70380@gmail.com>
6971
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
7072
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
7173
Gautam sharma <gautamkrishnasharma1@gmail.com>
72-
GeoDaoyu <geodaoyu@foxmail.com>
74+
Geo Daoyu <geodaoyu@foxmail.com>
7375
Girish Garg <garggirish2020@gmail.com>
76+
Gitty Harsha <hnarayana788@gmail.com>
7477
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
78+
Gopi Kishan <gkishan1kyt@gmail.com>
7579
Gunj Joshi <gunjjoshi8372@gmail.com>
80+
Guru Prasad Sharma <168292003+GURUPRASADSHARMA@users.noreply.github.com>
7681
Gururaj Gurram <gururajgurram1512@gmail.com>
7782
Harishchandra Reddy <harish.7000@gmail.com>
7883
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
79-
Harsh <harshyadav6078@gmail.com>
80-
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
84+
Harsh Yadav <harshyadav6078@gmail.com>
8185
Harshita Kalani <harshitakalani02@gmail.com>
8286
Hemang Choudhary <coehemang@gmail.com>
8387
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
8488
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
89+
Iryna Andrushko <ira.andrushko2@gmail.com>
8590
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
86-
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
91+
Jaison Dsouza <jaisondz9360@gmail.com>
8792
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
8893
James Gelok <jdgelok@gmail.com>
8994
Jay Soni <jaygsoni14@gmail.com>
9095
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
96+
Jenish <thisisjenish05@gmail.com>
9197
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
9298
Jithin KS <jithinks112@gmail.com>
9399
Joel Mathew Koshy <joelmathewkoshy@gmail.com>
94100
Joey Reed <joeyrreed@gmail.com>
95101
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
96102
Joris Labie <joris.labie1@gmail.com>
103+
jsai28 <54253219+jsai28@users.noreply.github.com>
97104
Justin Dennison <justin1dennison@gmail.com>
98105
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
99106
Karan Anand <anandkarancompsci@gmail.com>
100107
Karan Vasudevamurthy <karanlvm123@gmail.com>
101108
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
102109
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
103-
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
104110
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
105111
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
106112
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
107113
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
108114
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
109115
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
116+
lohithganni <116790357+lohithganni@users.noreply.github.com>
110117
Lokesh Ranjan <lokesh.ranjan.phe23@itbhu.ac.in>
111118
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
112-
MANI <77221000+Eternity0207@users.noreply.github.com>
113119
Mahfuza Humayra Mohona <mhmohona@gmail.com>
120+
MANI <77221000+Eternity0207@users.noreply.github.com>
114121
Manik Sharma <maniksharma.rke@gmail.com>
115122
Manvith M <148960168+manvith2003@users.noreply.github.com>
116123
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -119,14 +126,17 @@ Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
119126
Milan Raj <rajsite@users.noreply.github.com>
120127
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
121128
Mohammad Kaif <mdkaifprofession@gmail.com>
129+
Mohsin <122507740+thisisairo@users.noreply.github.com>
122130
Momtchil Momtchev <momtchil@momtchev.com>
123131
Muhammad Haris <harriskhan047@outlook.com>
124132
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
125133
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
126-
NEEKUorAAYUSH <aayush10072004@gmail.com>
127134
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
128135
Naresh Jagadeesan <naresh.naresh000@gmail.com>
129136
Naveen Kumar <stupiddint@gmail.com>
137+
Navyansh Kesarwani <91735202+navyansh007@users.noreply.github.com>
138+
navyansh007 <91735202+navyansh007@users.noreply.github.com>
139+
NEEKUorAAYUSH <aayush10072004@gmail.com>
130140
Neeraj Pathak <neerajrpathak710@gmail.com>
131141
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
132142
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
@@ -135,14 +145,18 @@ Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
135145
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
136146
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
137147
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
148+
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
138149
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
139150
Ori Miles <97595296+orimiles5@users.noreply.github.com>
151+
Payal Goswami <payalgoswami9711@gmail.com>
140152
Philipp Burckhardt <pburckhardt@outlook.com>
141153
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
154+
Piyush Goel <piyush.goel2704@gmail.com>
142155
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
143156
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
144157
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
145158
Pranav Goswami <pranavchiku11@gmail.com>
159+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
146160
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
147161
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
148162
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
@@ -154,37 +168,44 @@ Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
154168
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
155169
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
156170
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
171+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
172+
rainn <88160429+AmCodesLame@users.noreply.github.com>
157173
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
174+
rei2hu <reimu@reimu.ws>
158175
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
159176
Ricky Reusser <rsreusser@gmail.com>
160177
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
161178
Rishav <115060907+rishav2404@users.noreply.github.com>
162179
Rishav Tarway <rishavtarway@gmail.com>
163180
Robert Gislason <gztown2216@yahoo.com>
164181
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
182+
RudrakshRaina07 <1819rudraksh@gmail.com>
165183
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
166184
Rutam Kathale <138517416+performant23@users.noreply.github.com>
167185
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
168186
Ryan Seal <splrk@users.noreply.github.com>
169187
Rylan Yang <137365285+rylany27@users.noreply.github.com>
170-
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
171-
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
172-
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
173188
Sachin Raj <120590207+schnrj@users.noreply.github.com>
174189
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
190+
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
175191
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
176192
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
177193
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
178194
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
179195
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
196+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
180197
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
198+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
181199
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
182200
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
183201
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
202+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
184203
Shivam Ahir <11shivam00@gmail.com>
204+
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
185205
Shivansh <114570926+shiv343@users.noreply.github.com>
186206
Shraddheya Shendre <shendreshraddheya@gmail.com>
187207
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
208+
Shubham <b4mshubham@gmail.com>
188209
Shubham Mishra <shubh622005@gmail.com>
189210
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
190211
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
@@ -201,6 +222,8 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
201222
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
202223
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
203224
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
225+
Tushar Bharti <73595362+USERSATOSHI@users.noreply.github.com>
226+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
204227
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
205228
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
206229
Utkarsh <http://utkarsh11105@gmail.com>
@@ -216,19 +239,7 @@ Wendy Yuchen Sun <wendyyuchensun@gmail.com>
216239
Xiaochuan Ye <tap91624@gmail.com>
217240
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
218241
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
242+
youzi-forge <liuxingyou666@outlook.com>
219243
Yugal Kaushik <yugalkaushik14@gmail.com>
220244
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
221-
deepak427 <62477872+deepak427@users.noreply.github.com>
222-
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
223-
ditsu <170345142+ditsus@users.noreply.github.com>
224-
ekambains <bainsinbusiness@gmail.com>
225-
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
226-
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
227-
jsai28 <54253219+jsai28@users.noreply.github.com>
228-
lohithganni <116790357+lohithganni@users.noreply.github.com>
229-
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
230-
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
231-
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
232-
rainn <88160429+AmCodesLame@users.noreply.github.com>
233-
rei2hu <reimu@reimu.ws>
234-
zhanggy <geodaoyu@foxmail.com>
245+
Zuhair Ahmad <157193652+Zuhair-CS@users.noreply.github.com>

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,22 +156,18 @@ y = mylogcdf( 4.0 );
156156
<!-- eslint no-undef: "error" -->
157157

158158
```javascript
159-
var randu = require( '@stdlib/random-base-randu' );
159+
var uniform = require( '@stdlib/random-array-uniform' );
160+
var logEachMap = require( '@stdlib/console-log-each-map' );
160161
var logcdf = require( '@stdlib/stats-base-dists-laplace-logcdf' );
161162

162-
var mu;
163-
var b;
164-
var x;
165-
var y;
166-
var i;
167-
168-
for ( i = 0; i < 100; i++ ) {
169-
x = randu() * 10.0;
170-
mu = randu() * 10.0;
171-
b = randu() * 10.0;
172-
y = logcdf( x, mu, b );
173-
console.log( 'x: %d, µ: %d, b: %d, ln(F(x;µ,b)): %d', x.toFixed( 4 ), mu.toFixed( 4 ), b.toFixed( 4 ), y.toFixed( 4 ) );
174-
}
163+
var opts = {
164+
'dtype': 'float64'
165+
};
166+
var x = uniform( 100, 0.0, 10.0, opts );
167+
var mu = uniform( 100, 0.0, 10.0, opts );
168+
var b = uniform( 100, 0.0, 10.0, opts );
169+
170+
logEachMap( 'x: %0.4f, µ: %0.4f, b: %0.4f, ln(F(x;µ,b)): %0.4f', x, mu, b, logcdf );
175171
```
176172

177173
</section>

examples/index.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
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 logcdf = require( './../lib' );
2324

24-
var mu;
25-
var b;
26-
var x;
27-
var y;
28-
var i;
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 100, 0.0, 10.0, opts );
29+
var mu = uniform( 100, 0.0, 10.0, opts );
30+
var b = uniform( 100, 0.0, 10.0, opts );
2931

30-
for ( i = 0; i < 100; i++ ) {
31-
x = randu() * 10.0;
32-
mu = randu() * 10.0;
33-
b = randu() * 10.0;
34-
y = logcdf( x, mu, b );
35-
console.log( 'x: %d, µ: %d, b: %d, ln(F(x;µ,b)): %d', x.toFixed( 4 ), mu.toFixed( 4 ), b.toFixed( 4 ), y.toFixed( 4 ) );
36-
}
32+
logEachMap( 'x: %0.4f, µ: %0.4f, b: %0.4f, ln(F(x;µ,b)): %0.4f', x, mu, b, logcdf );

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@
5151
},
5252
"devDependencies": {
5353
"@stdlib/array-float64": "^0.2.2",
54+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
5455
"@stdlib/constants-float64-eps": "^0.2.2",
5556
"@stdlib/constants-float64-ninf": "^0.2.2",
5657
"@stdlib/constants-float64-pinf": "^0.2.2",
5758
"@stdlib/math-base-special-abs": "^0.2.2",
58-
"@stdlib/random-base-randu": "^0.2.1",
59+
"@stdlib/random-array-uniform": "^0.2.1",
5960
"@stdlib/random-base-uniform": "^0.2.1",
6061
"@stdlib/utils-try-require": "^0.2.2",
6162
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)