Skip to content

Commit ea05e24

Browse files
committed
Auto-generated commit
1 parent 39b103c commit ea05e24

File tree

5 files changed

+36
-26
lines changed

5 files changed

+36
-26
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-04-23)
88

99
<section class="features">
1010

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

3535
<details>
3636

37+
- [`b7ca1bd`](https://github.com/stdlib-js/stdlib/commit/b7ca1bd43ab7777ea30f52b4f1392a78f3ad7b1b) - **docs:** replace manual `for` loop in examples [(#6793)](https://github.com/stdlib-js/stdlib/pull/6793) _(by Harsh)_
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
- [`9394549`](https://github.com/stdlib-js/stdlib/commit/939454926b745326a5b14bcd0924a0526baa93da) - **bench:** refactor random number generation in `stats/base/dists/beta` [(#4837)](https://github.com/stdlib-js/stdlib/pull/4837) _(by Karan Anand)_
@@ -52,8 +53,9 @@ This release closes the following issue:
5253

5354
### Contributors
5455

55-
A total of 3 people contributed to this release. Thank you to the following contributors:
56+
A total of 4 people contributed to this release. Thank you to the following contributors:
5657

58+
- Harsh
5759
- Karan Anand
5860
- Philipp Burckhardt
5961
- Vivek Maurya

CONTRIBUTORS

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ 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]>
5557
Golden Kumar <[email protected]>
@@ -75,7 +77,8 @@ Jordan Gallivan <[email protected]>
7577
Joris Labie <[email protected]>
7678
Justin Dennison <[email protected]>
7779
Justyn Shelby <[email protected]>
78-
Karan Anand <[email protected]>
80+
Karan Anand <[email protected]>
81+
Karan Yadav <[email protected]>
7982
Karthik Prakash <[email protected]>
8083
Kaushikgtm <[email protected]>
8184
Kavyansh-Bagdi <[email protected]>
@@ -85,6 +88,7 @@ Krishnendu Das <[email protected]>
8588
Kshitij-Dale <[email protected]>
8689
Lovelin Dhoni J B <[email protected]>
8790
91+
Mahfuza Humayra Mohona <[email protected]>
8892
Manik Sharma <[email protected]>
8993
Manvith M <[email protected]>
9094
Marcus Fantham <[email protected]>
@@ -95,10 +99,14 @@ Mohammad Bin Aftab <[email protected]>
9599
Mohammad Kaif <[email protected]>
96100
Momtchil Momtchev <[email protected]>
97101
Muhammad Haris <[email protected]>
102+
Muhammad Taaha Tariq <[email protected]>
103+
Muhmmad Saad <[email protected]>
98104
Naresh Jagadeesan <[email protected]>
99105
Naveen Kumar <[email protected]>
100106
Neeraj Pathak <[email protected]>
107+
NirvedMishra <[email protected]>
101108
Nishant Shinde <[email protected]>
109+
Nishant singh <[email protected]>
102110
Nishchay Rajput <[email protected]>
103111
Nithin Katta <[email protected]>
104112
Nourhan Hasan <[email protected]>
@@ -111,8 +119,10 @@ Prajwal Kulkarni <[email protected]>
111119
Pranav Goswami <[email protected]>
112120
Pranjal Jha <[email protected]>
113121
Prashant Kumar Yadav <[email protected]>
122+
PrathamBhamare <[email protected]>
114123
Pratik Singh <[email protected]>
115124
Pratyush Kumar Chouhan <[email protected]>
125+
Pravesh Kunwar <[email protected]>
116126
Priyansh Prajapati <[email protected]>
117127
Priyanshu Agarwal <[email protected]>
118128
Pulkit Gupta <[email protected]>
@@ -126,6 +136,7 @@ Rishav <[email protected]>
126136
Rishav Tarway <[email protected]>
127137
Robert Gislason <[email protected]>
128138
Roman Stetsyk <[email protected]>
139+
129140
Rutam Kathale <[email protected]>
130141
Ruthwik Chikoti <[email protected]>
131142
Ryan Seal <[email protected]>
@@ -168,9 +179,11 @@ Yaswanth Kosuru <[email protected]>
168179
Yernar Yergaziyev <[email protected]>
169180
Yugal Kaushik <[email protected]>
170181
Yuvi Mittal <[email protected]>
182+
devshree-bhati <[email protected]>
171183
172184
ekambains <[email protected]>
173185
fadiothman22 <[email protected]>
186+
iraandrushko <[email protected]>
174187
lohithganni <[email protected]>
175188
olenkabilonizhka <[email protected]>
176189
pranav-1720 <[email protected]>

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,21 +156,18 @@ v = variance( 1.0, -1.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 EPS = require( '@stdlib/constants-float64-eps' );
161162
var variance = require( '@stdlib/stats-base-dists-beta-variance' );
162163

163-
var alpha;
164-
var beta;
165-
var v;
166-
var i;
164+
var opts = {
165+
'dtype': 'float64'
166+
};
167+
var alpha = uniform( 10, EPS, 10.0, opts );
168+
var beta = uniform( 10, EPS, 10.0, opts );
167169

168-
for ( i = 0; i < 10; i++ ) {
169-
alpha = ( randu()*10.0 ) + EPS;
170-
beta = ( randu()*10.0 ) + EPS;
171-
v = variance( alpha, beta );
172-
console.log( 'α: %d, β: %d, Var(X;α,β): %d', alpha.toFixed( 4 ), beta.toFixed( 4 ), v.toFixed( 4 ) );
173-
}
170+
logEachMap( 'α: %0.4f, β: %0.4f, Var(X;α,β): %0.4f', alpha, beta, variance );
174171
```
175172

176173
</section>

examples/index.js

Lines changed: 8 additions & 11 deletions
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 variance = require( './../lib' );
2425

25-
var alpha;
26-
var beta;
27-
var v;
28-
var i;
26+
var opts = {
27+
'dtype': 'float64'
28+
};
29+
var alpha = uniform( 10, EPS, 10.0, opts );
30+
var beta = uniform( 10, EPS, 10.0, opts );
2931

30-
for ( i = 0; i < 10; i++ ) {
31-
alpha = ( randu()*10.0 ) + EPS;
32-
beta = ( randu()*10.0 ) + EPS;
33-
v = variance( alpha, beta );
34-
console.log( 'α: %d, β: %d, Var(X;α,β): %d', alpha.toFixed( 4 ), beta.toFixed( 4 ), v.toFixed( 4 ) );
35-
}
32+
logEachMap( 'α: %0.4f, β: %0.4f, Var(X;α,β): %0.4f', alpha, beta, variance );

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
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-ninf": "^0.2.2",
5051
"@stdlib/constants-float64-pinf": "^0.2.2",
5152
"@stdlib/math-base-assert-is-nan": "^0.2.2",
5253
"@stdlib/math-base-special-abs": "^0.2.2",
53-
"@stdlib/random-base-randu": "^0.2.1",
54+
"@stdlib/random-array-uniform": "^0.2.1",
5455
"@stdlib/random-base-uniform": "^0.2.1",
5556
"@stdlib/utils-try-require": "^0.2.2",
5657
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)