Skip to content

Commit 4c45add

Browse files
committed
Auto-generated commit
1 parent e22bd67 commit 4c45add

File tree

5 files changed

+44
-32
lines changed

5 files changed

+44
-32
lines changed

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-04)
88

99
<section class="features">
1010

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

3535
<details>
3636

37+
- [`28f64ec`](https://github.com/stdlib-js/stdlib/commit/28f64ec05e56db3e8836cfcdfd45e27a53eda4bf) - **docs:** replace manual `for` loop in examples [(#6918)](https://github.com/stdlib-js/stdlib/pull/6918) _(by Harsh)_
3738
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3839
- [`f175cf9`](https://github.com/stdlib-js/stdlib/commit/f175cf9948ecaf9928a34777bd35967dc4bf788d) - **feat:** add C implementation of `stats/base/dists/cauchy/logcdf` [(#4390)](https://github.com/stdlib-js/stdlib/pull/4390) _(by Vinit Pandit, stdlib-bot, Philipp Burckhardt)_
3940
- [`f2d2150`](https://github.com/stdlib-js/stdlib/commit/f2d21507493d82265ec30daa3aa00a0829e902c9) - **bench:** refactor random number generation in `stats/base/dists/cauchy` [(#4850)](https://github.com/stdlib-js/stdlib/pull/4850) _(by Karan Anand)_
@@ -48,8 +49,9 @@ This release closes the following issue:
4849

4950
### Contributors
5051

51-
A total of 3 people contributed to this release. Thank you to the following contributors:
52+
A total of 4 people contributed to this release. Thank you to the following contributors:
5253

54+
- Harsh
5355
- Karan Anand
5456
- Philipp Burckhardt
5557
- Vinit Pandit

CONTRIBUTORS

Lines changed: 19 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,6 +139,7 @@ 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>
@@ -168,12 +182,15 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
168182
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
169183
Yugal Kaushik <yugalkaushik14@gmail.com>
170184
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
185+
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
171186
ditsu <170345142+ditsus@users.noreply.github.com>
172187
ekambains <bainsinbusiness@gmail.com>
173188
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
189+
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
174190
lohithganni <116790357+lohithganni@users.noreply.github.com>
175191
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
176192
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
177193
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
178194
rainn <88160429+AmCodesLame@users.noreply.github.com>
179195
rei2hu <reimu@reimu.ws>
196+
zhanggy <geodaoyu@foxmail.com>

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,23 +159,19 @@ y = mylogcdf( 12.0 );
159159
<!-- eslint no-undef: "error" -->
160160

161161
```javascript
162-
var randu = require( '@stdlib/random-base-randu' );
162+
var uniform = require( '@stdlib/random-array-uniform' );
163+
var logEachMap = require( '@stdlib/console-log-each-map' );
163164
var EPS = require( '@stdlib/constants-float64-eps' );
164165
var logcdf = require( '@stdlib/stats-base-dists-cauchy-logcdf' );
165166

166-
var gamma;
167-
var x0;
168-
var x;
169-
var y;
170-
var i;
171-
172-
for ( i = 0; i < 10; i++ ) {
173-
x = randu() * 10.0;
174-
x0 = randu() * 10.0;
175-
gamma = ( randu()*10.0 ) + EPS;
176-
y = logcdf( x, x0, gamma );
177-
console.log( 'x: %d, x0: %d, γ: %d, ln(F(x;x0,γ)): %d', x, x0, gamma, y );
178-
}
167+
var opts = {
168+
'dtype': 'float64'
169+
};
170+
var gamma = uniform( 10, EPS, 10.0, opts );
171+
var x0 = uniform( 10, 0.0, 10.0, opts );
172+
var x = uniform( 10, 0.0, 10.0, opts );
173+
174+
logEachMap( 'x: %0.4f, x0: %0.4f, γ: %0.4f, ln(F(x;x0,γ)): %0.4f', x, x0, gamma, logcdf );
179175
```
180176

181177
</section>

examples/index.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,16 @@
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 EPS = require( '@stdlib/constants-float64-eps' );
2324
var logcdf = require( './../lib' );
2425

25-
var gamma;
26-
var x0;
27-
var x;
28-
var y;
29-
var i;
26+
var opts = {
27+
'dtype': 'float64'
28+
};
29+
var gamma = uniform( 10, EPS, 10.0, opts );
30+
var x0 = uniform( 10, 0.0, 10.0, opts );
31+
var x = uniform( 10, 0.0, 10.0, opts );
3032

31-
for ( i = 0; i < 10; i++ ) {
32-
x = randu() * 10.0;
33-
x0 = randu() * 10.0;
34-
gamma = ( randu()*10.0 ) + EPS;
35-
y = logcdf( x, x0, gamma );
36-
console.log( 'x: %d, x0: %d, γ: %d, ln(F(x;x0,γ)): %d', x, x0, gamma, y );
37-
}
33+
logEachMap( 'x: %0.4f, x0: %0.4f, γ: %0.4f, ln(F(x;x0,γ)): %0.4f', x, x0, gamma, logcdf );

package.json

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

0 commit comments

Comments
 (0)