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
- [`03494c2`](https://github.com/stdlib-js/stdlib/commit/03494c2d20c88a2ab68fdd9fbf79c396e1885440) - add C implementation for `stats/base/dists/t/mean` [(#3922)](https://github.com/stdlib-js/stdlib/pull/3922)
@@ -786,8 +820,9 @@ A total of 24 issues were closed in this release:
786
820
787
821
### Contributors
788
822
789
-
A total of 11 people contributed to this release. Thank you to the following contributors:
823
+
A total of 12 people contributed to this release. Thank you to the following contributors:
790
824
825
+
- Aadish Jain
791
826
- Aayush Khanna
792
827
- Athan Reines
793
828
- Gururaj Gurram
@@ -810,6 +845,7 @@ A total of 11 people contributed to this release. Thank you to the following con
810
845
811
846
<details>
812
847
848
+
- [`03494c2`](https://github.com/stdlib-js/stdlib/commit/03494c2d20c88a2ab68fdd9fbf79c396e1885440) - **feat:** add C implementation for `stats/base/dists/t/mean` [(#3922)](https://github.com/stdlib-js/stdlib/pull/3922) _(by Aadish Jain, Philipp Burckhardt)_
813
849
- [`a146971`](https://github.com/stdlib-js/stdlib/commit/a1469718890f5a007c6c7343757b621274dad0e0) - **feat:** add C implementation for `stats/base/dists/pareto-type1/skewness` [(#3927)](https://github.com/stdlib-js/stdlib/pull/3927) _(by Gururaj Gurram, Philipp Burckhardt)_
814
850
- [`9d7f4db`](https://github.com/stdlib-js/stdlib/commit/9d7f4dbd6c71a2a57b2e55a88e5b7ded091cbd67) - **feat:** add C implementation for `stats/base/dists/beta/skewness` [(#3921)](https://github.com/stdlib-js/stdlib/pull/3921) _(by Vivek maurya, Philipp Burckhardt)_
815
851
- [`94aa4aa`](https://github.com/stdlib-js/stdlib/commit/94aa4aafa4f6e98f8e51285daa212e1402254b10) - **feat:** add C implementation for `stats/base/dists/t/stdev` [(#3923)](https://github.com/stdlib-js/stdlib/pull/3923) _(by Aayush Khanna, stdlib-bot)_
Copy file name to clipboardExpand all lines: base/dists/t/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/t/mean.h"
146
+
```
147
+
148
+
#### stdlib_base_dists_t_mean( v )
149
+
150
+
Returns the [expected value][expected-value] of a [Student's t][t-distribution] distribution with degrees of freedom `v`.
151
+
152
+
```c
153
+
double out = stdlib_base_dists_t_mean( 10.0 );
154
+
// returns 0.0
155
+
```
156
+
157
+
The function accepts the following arguments:
158
+
159
+
-**v**: `[in] double` degrees of freedom.
160
+
161
+
```c
162
+
doublestdlib_base_dists_t_mean( const double v );
163
+
```
164
+
165
+
</section>
166
+
167
+
<!-- /.usage -->
168
+
169
+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
190
+
return min + ( v*(max-min) );
191
+
}
192
+
193
+
int main( void ) {
194
+
double v;
195
+
double y;
196
+
int i;
197
+
198
+
for ( i = 0; i < 25; i++ ) {
199
+
v = random_uniform( 1.0, 100.0 );
200
+
y = stdlib_base_dists_t_mean( v );
201
+
printf( "v: %lf, mean: %lf\n", v, 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