You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,37 @@
4
4
5
5
<sectionclass="release"id="unreleased">
6
6
7
-
## Unreleased (2025-03-22)
7
+
## Unreleased (2025-04-24)
8
+
9
+
<sectionclass="features">
10
+
11
+
### Features
12
+
13
+
-[`0a6c344`](https://github.com/stdlib-js/stdlib/commit/0a6c344b6922ed9d12900074f01c88aaf58855f1) - add C implementation for `stats/base/dists/bernoulli/mgf`[(#3981)](https://github.com/stdlib-js/stdlib/pull/3981)
-[`802775e`](https://github.com/stdlib-js/stdlib/commit/802775ea028fb2a42041611187b6373b49f5f397) - **bench:** refactor random number generation in `stats/base/dists/bernoulli`[(#4775)](https://github.com/stdlib-js/stdlib/pull/4775)_(by Karan Anand, Athan Reines)_
17
40
@@ -25,10 +48,11 @@
25
48
26
49
### Contributors
27
50
28
-
A total of 2 people contributed to this release. Thank you to the following contributors:
51
+
A total of 3 people contributed to this release. Thank you to the following contributors:
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
182
+
183
+
<sectionclass="intro">
184
+
185
+
</section>
186
+
187
+
<!-- /.intro -->
188
+
189
+
<!-- C usage documentation. -->
190
+
191
+
<sectionclass="usage">
192
+
193
+
### Usage
194
+
195
+
```c
196
+
#include"stdlib/stats/base/dists/bernoulli/mgf.h"
197
+
```
198
+
199
+
#### stdlib_base_dists_bernoulli_mgf( t, p )
200
+
201
+
Evaluates the moment-generating function ([MGF][mgf]) of a [Bernoulli][bernoulli-distribution] distribution with success probability `p`.
202
+
203
+
```c
204
+
double y = stdlib_base_dists_bernoulli_mgf( 0.2, 0.5 );
205
+
// returns ~1.111
206
+
```
207
+
208
+
The function accepts the following arguments:
209
+
210
+
-**t**: `[in] double` input value.
211
+
-**p**: `[in] double` success probability.
212
+
213
+
```c
214
+
doublestdlib_base_dists_bernoulli_mgf( const double t, const double p );
215
+
```
216
+
217
+
</section>
218
+
219
+
<!-- /.usage -->
220
+
221
+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments