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
- [`724d581`](https://github.com/stdlib-js/stdlib/commit/724d58131a5f47d333a0f062e56d489ce1605aa6) - add C implementation for `stats/base/dists/exponential/mean` [(#4046)](https://github.com/stdlib-js/stdlib/pull/4046)
@@ -2380,6 +2414,7 @@ A total of 17 people contributed to this release. Thank you to the following con
2380
2414
2381
2415
<details>
2382
2416
2417
+
- [`724d581`](https://github.com/stdlib-js/stdlib/commit/724d58131a5f47d333a0f062e56d489ce1605aa6) - **feat:** add C implementation for `stats/base/dists/exponential/mean` [(#4046)](https://github.com/stdlib-js/stdlib/pull/4046) _(by Prashant Kumar Yadav)_
2383
2418
- [`ed04d90`](https://github.com/stdlib-js/stdlib/commit/ed04d90cd3540e5a3b0b5cb49f623c62935edd1e) - **feat:** add C implementation for `stats/base/dists/rayleigh/mode` [(#4024)](https://github.com/stdlib-js/stdlib/pull/4024) _(by Prashant Kumar Yadav)_
2384
2419
- [`daf43b2`](https://github.com/stdlib-js/stdlib/commit/daf43b2052a0ad89fa4c72caee6d7caedcc4cc38) - **feat:** add C implementation for `stats/base/dists/triangular/mode` [(#4008)](https://github.com/stdlib-js/stdlib/pull/4008) _(by Prashant Kumar Yadav, Philipp Burckhardt)_
2385
2420
- [`3c0ff2c`](https://github.com/stdlib-js/stdlib/commit/3c0ff2cdae8f78f99cdf09db8dc150f3f0e2cd67) - **feat:** add C implementation for `stats/base/dists/laplace/entropy` [(#4025)](https://github.com/stdlib-js/stdlib/pull/4025) _(by Aayush Khanna, Philipp Burckhardt)_
Copy file name to clipboardExpand all lines: base/dists/exponential/mean/README.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,94 @@ for ( i = 0; i < 10; i++ ) {
116
116
117
117
<!-- /.examples -->
118
118
119
+
<!-- C interface documentation. -->
120
+
121
+
* * *
122
+
123
+
<sectionclass="c">
124
+
125
+
## C APIs
126
+
127
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
187
+
return min + ( v*(max-min) );
188
+
}
189
+
190
+
int main( void ) {
191
+
double lambda;
192
+
double y;
193
+
int i;
194
+
195
+
for ( i = 0; i < 25; i++ ) {
196
+
lambda = random_uniform( 0.0, 20.0 );
197
+
y = stdlib_base_dists_exponential_mean( lambda );
198
+
printf( "λ: %lf, E[X;λ]: %lf\n", lambda, y );
199
+
}
200
+
}
201
+
```
202
+
203
+
</section>
204
+
205
+
<!-- /.examples -->
206
+
119
207
<!-- 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