Skip to content

Commit 8c4a055

Browse files
committed
Auto-generated commit
1 parent f1d6c5d commit 8c4a055

File tree

5 files changed

+41
-27
lines changed

5 files changed

+41
-27
lines changed

CHANGELOG.md

+4-2
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+
- [`ca3d958`](https://github.com/stdlib-js/stdlib/commit/ca3d958f22927d6a6d4af71f50b92b5f7be27d7c) - **docs:** replace manual `for` loop in examples [(#6919)](https://github.com/stdlib-js/stdlib/pull/6919) _(by Harsh, Philipp Burckhardt)_
3738
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_
3839
- [`e61b1de`](https://github.com/stdlib-js/stdlib/commit/e61b1dee3334bacf30d213de5b5f1c7868c0753b) - **docs:** clean-up of C docstrings _(by 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)_
@@ -49,8 +50,9 @@ This release closes the following issue:
4950

5051
### Contributors
5152

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

55+
- Harsh
5456
- Karan Anand
5557
- Philipp Burckhardt
5658
- Vivek Maurya

CONTRIBUTORS

+19-2
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,26 @@ Dev Goel <[email protected]>
4343
Dhanyabad behera <[email protected]>
4444
Dhruv Arvind Singh <[email protected]>
4545
Dhruvil Mehta <[email protected]>
46+
Dipjyoti Das <[email protected]>
4647
Divyansh Seth <[email protected]>
4748
Dominic Lim <[email protected]>
4849
Dominik Moritz <[email protected]>
4950
Dorrin Sotoudeh <[email protected]>
5051
EuniceSim142 <[email protected]>
5152
Frank Kovacs <[email protected]>
5253
GK Bishnoi <[email protected]>
54+
GURU PRASAD SHARMA <[email protected]>
5355
5456
Gautam sharma <[email protected]>
57+
Girish Garg <[email protected]>
5558
Golden Kumar <[email protected]>
5659
Gunj Joshi <[email protected]>
5760
Gururaj Gurram <[email protected]>
5861
Haroon Rasheed <[email protected]>
59-
Harsh <[email protected].com>
62+
Harsh <harshyadav6078@gmail.com>
6063
6164
Harshita Kalani <[email protected]>
65+
Hemang Choudhary <[email protected]>
6266
Hemant M Mehta <[email protected]>
6367
Hridyanshu <[email protected]>
6468
Jaimin Godhani <[email protected]>
@@ -75,16 +79,19 @@ Jordan Gallivan <[email protected]>
7579
Joris Labie <[email protected]>
7680
Justin Dennison <[email protected]>
7781
Justyn Shelby <[email protected]>
78-
Karan Anand <[email protected]>
82+
Karan Anand <[email protected]>
83+
Karan Yadav <[email protected]>
7984
Karthik Prakash <[email protected]>
8085
Kaushikgtm <[email protected]>
8186
Kavyansh-Bagdi <[email protected]>
8287
Kohantika Nath <[email protected]>
8388
Krishnam Agarwal <[email protected]>
8489
Krishnendu Das <[email protected]>
8590
Kshitij-Dale <[email protected]>
91+
Lalit Narayan Yadav <[email protected]>
8692
Lovelin Dhoni J B <[email protected]>
8793
94+
Mahfuza Humayra Mohona <[email protected]>
8895
Manik Sharma <[email protected]>
8996
Manvith M <[email protected]>
9097
Marcus Fantham <[email protected]>
@@ -95,10 +102,14 @@ Mohammad Bin Aftab <[email protected]>
95102
Mohammad Kaif <[email protected]>
96103
Momtchil Momtchev <[email protected]>
97104
Muhammad Haris <[email protected]>
105+
Muhammad Taaha Tariq <[email protected]>
106+
Muhmmad Saad <[email protected]>
98107
Naresh Jagadeesan <[email protected]>
99108
Naveen Kumar <[email protected]>
100109
Neeraj Pathak <[email protected]>
110+
NirvedMishra <[email protected]>
101111
Nishant Shinde <[email protected]>
112+
Nishant singh <[email protected]>
102113
Nishchay Rajput <[email protected]>
103114
Nithin Katta <[email protected]>
104115
Nourhan Hasan <[email protected]>
@@ -111,8 +122,10 @@ Prajwal Kulkarni <[email protected]>
111122
Pranav Goswami <[email protected]>
112123
Pranjal Jha <[email protected]>
113124
Prashant Kumar Yadav <[email protected]>
125+
PrathamBhamare <[email protected]>
114126
Pratik Singh <[email protected]>
115127
Pratyush Kumar Chouhan <[email protected]>
128+
Pravesh Kunwar <[email protected]>
116129
Priyansh Prajapati <[email protected]>
117130
Priyanshu Agarwal <[email protected]>
118131
Pulkit Gupta <[email protected]>
@@ -126,6 +139,7 @@ Rishav <[email protected]>
126139
Rishav Tarway <[email protected]>
127140
Robert Gislason <[email protected]>
128141
Roman Stetsyk <[email protected]>
142+
129143
Rutam Kathale <[email protected]>
130144
Ruthwik Chikoti <[email protected]>
131145
Ryan Seal <[email protected]>
@@ -168,12 +182,15 @@ Yaswanth Kosuru <[email protected]>
168182
Yernar Yergaziyev <[email protected]>
169183
Yugal Kaushik <[email protected]>
170184
Yuvi Mittal <[email protected]>
185+
devshree-bhati <[email protected]>
171186
172187
ekambains <[email protected]>
173188
fadiothman22 <[email protected]>
189+
iraandrushko <[email protected]>
174190
lohithganni <[email protected]>
175191
olenkabilonizhka <[email protected]>
176192
pranav-1720 <[email protected]>
177193
rahulrangers <[email protected]>
178194
179195
196+

README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,18 @@ v = median( 1.0, 0.0 );
141141
<!-- eslint no-undef: "error" -->
142142

143143
```javascript
144-
var randu = require( '@stdlib/random-base-randu' );
144+
var uniform = require( '@stdlib/random-array-uniform' );
145+
var logEachMap = require( '@stdlib/console-log-each-map' );
145146
var EPS = require( '@stdlib/constants-float64-eps' );
146147
var median = require( '@stdlib/stats-base-dists-cauchy-median' );
147148

148-
var gamma;
149-
var x0;
150-
var v;
151-
var i;
149+
var opts = {
150+
'dtype': 'float64'
151+
};
152+
var gamma = uniform( 10, EPS, 10.0, opts );
153+
var x0 = uniform( 10, 0.0, 100.0, opts );
152154

153-
for ( i = 0; i < 10; i++ ) {
154-
x0 = randu() * 100.0;
155-
gamma = ( randu()*10.0 ) + EPS;
156-
v = median( x0, gamma );
157-
console.log( 'x0: %d, γ: %d, Median(X;x0,γ): %d', x0.toFixed( 4 ), gamma.toFixed( 4 ), v.toFixed( 4 ) );
158-
}
155+
logEachMap( 'x0: %0.4f, γ: %0.4f, Median(X;x0,γ): %0.4f', x0, gamma, median );
159156
```
160157

161158
</section>

examples/index.js

+8-11
Original file line numberDiff line numberDiff line change
@@ -18,18 +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 EPS = require( '@stdlib/constants-float64-eps' );
2324
var median = require( './../lib' );
2425

25-
var gamma;
26-
var x0;
27-
var v;
28-
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, 100.0, opts );
2931

30-
for ( i = 0; i < 10; i++ ) {
31-
x0 = randu() * 100.0;
32-
gamma = ( randu()*10.0 ) + EPS;
33-
v = median( x0, gamma );
34-
console.log( 'x0: %d, γ: %d, Median(X;x0,γ): %d', x0.toFixed( 4 ), gamma.toFixed( 4 ), v.toFixed( 4 ) );
35-
}
32+
logEachMap( 'x0: %0.4f, γ: %0.4f, Median(X;x0,γ): %0.4f', x0, gamma, median );

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@
4646
},
4747
"devDependencies": {
4848
"@stdlib/array-float64": "^0.2.2",
49+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
4950
"@stdlib/constants-float64-eps": "^0.2.2",
5051
"@stdlib/constants-float64-ninf": "^0.2.2",
5152
"@stdlib/constants-float64-pinf": "^0.2.2",
52-
"@stdlib/random-base-randu": "^0.2.1",
53+
"@stdlib/random-array-uniform": "^0.2.1",
5354
"@stdlib/random-base-uniform": "^0.2.1",
5455
"@stdlib/utils-try-require": "^0.2.2",
5556
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)