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
- [`9d270ad`](https://github.com/stdlib-js/stdlib/commit/9d270ad8299ceb0723b1b805e738fbe19faa6520) - add C implementation for `stats/base/dists/rayleigh/mean` [(#4026)](https://github.com/stdlib-js/stdlib/pull/4026)
@@ -2175,6 +2209,7 @@ A total of 16 people contributed to this release. Thank you to the following con
2175
2209
2176
2210
<details>
2177
2211
2212
+
- [`9d270ad`](https://github.com/stdlib-js/stdlib/commit/9d270ad8299ceb0723b1b805e738fbe19faa6520) - **feat:** add C implementation for `stats/base/dists/rayleigh/mean` [(#4026)](https://github.com/stdlib-js/stdlib/pull/4026) _(by JoyBoy, Philipp Burckhardt)_
2178
2213
- [`7d9b63d`](https://github.com/stdlib-js/stdlib/commit/7d9b63ddd452bf4cc171bdd21cf666274d3eeb56) - **feat:** add C implementation for `stats/base/dists/exponential/mode` [(#4047)](https://github.com/stdlib-js/stdlib/pull/4047) _(by JoyBoy, Philipp Burckhardt)_
2179
2214
- [`7eb69d4`](https://github.com/stdlib-js/stdlib/commit/7eb69d4e7b7b998a98772fa118c16707a0160e92) - **feat:** add C implementation for `stats/base/dists/logistic/median` [(#4031)](https://github.com/stdlib-js/stdlib/pull/4031) _(by JoyBoy)_
2180
2215
- [`db1d12e`](https://github.com/stdlib-js/stdlib/commit/db1d12e38135bf8e67b497e80e9f352e1bcb25cb) - **feat:** add C implementation for `stats/base/dist/weibull/mean` [(#4052)](https://github.com/stdlib-js/stdlib/pull/4052) _(by Divyansh Seth, Philipp Burckhardt)_
Copy file name to clipboardExpand all lines: base/dists/rayleigh/mean/README.md
+92Lines changed: 92 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,98 @@ for ( i = 0; i < 10; i++ ) {
119
119
120
120
<!-- /.examples -->
121
121
122
+
<!-- C interface documentation. -->
123
+
124
+
* * *
125
+
126
+
<sectionclass="c">
127
+
128
+
## C APIs
129
+
130
+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
131
+
132
+
<sectionclass="intro">
133
+
134
+
</section>
135
+
136
+
<!-- /.intro -->
137
+
138
+
<!-- C usage documentation. -->
139
+
140
+
<sectionclass="usage">
141
+
142
+
### Usage
143
+
144
+
```c
145
+
#include"stdlib/stats/base/dists/rayleigh/mean.h"
146
+
```
147
+
148
+
#### stdlib_base_dists_rayleigh_mean( sigma )
149
+
150
+
Returns the mean of a Rayleigh distribution.
151
+
152
+
```c
153
+
double out = stdlib_base_dists_rayleigh_mean( 9.0 );
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
190
+
return min + ( v * ( max - min ) );
191
+
}
192
+
193
+
int main( void ) {
194
+
double sigma;
195
+
double y;
196
+
int i;
197
+
198
+
for ( i = 0; i < 25; i++ ) {
199
+
sigma = random_uniform( 0.0, 20.0 );
200
+
y = stdlib_base_dists_rayleigh_mean( sigma );
201
+
printf( "σ: %lf, Mean(X;σ): %lf\n", sigma, y );
202
+
}
203
+
}
204
+
```
205
+
206
+
</section>
207
+
208
+
<!-- /.examples -->
209
+
210
+
</section>
211
+
212
+
<!-- /.c -->
213
+
122
214
<!-- 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