Skip to content

Commit df7f826

Browse files
author
aayush0325
committed
docs: readme updated
1 parent 9abfafa commit df7f826

File tree

1 file changed

+91
-0
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/arcsine/kurtosis

1 file changed

+91
-0
lines changed

lib/node_modules/@stdlib/stats/base/dists/arcsine/kurtosis/README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,97 @@ for ( i = 0; i < 10; i++ ) {
131131

132132
<!-- /.examples -->
133133

134+
<!-- C interface documentation. -->
135+
136+
* * *
137+
138+
<section class="c">
139+
140+
## C APIs
141+
142+
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
143+
144+
<section class="intro">
145+
146+
</section>
147+
148+
<!-- /.intro -->
149+
150+
<!-- C usage documentation. -->
151+
152+
<section class="usage">
153+
154+
### Usage
155+
156+
```c
157+
#include "stdlib/stats/base/dists/arcsine/kurtosis.h"
158+
```
159+
160+
#### stdlib_base_dists_arcsine_kurtosis( a, b )
161+
162+
Returns the excess kurtosis of an arcsine distribution.
163+
164+
```c
165+
double out = stdlib_base_dists_arcsine_kurtosis( 0.0, 2.0 );
166+
// returns 1.5
167+
```
168+
169+
The function accepts the following arguments:
170+
171+
- **a**: `[in] double` minimum support
172+
- **b**: `[in] double` maximum support
173+
174+
```c
175+
double stdlib_base_dists_arcsine_kurtosis( const double a, const double b );
176+
```
177+
178+
</section>
179+
180+
<!-- /.usage -->
181+
182+
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
183+
184+
<section class="notes">
185+
186+
</section>
187+
188+
<!-- /.notes -->
189+
190+
<!-- C API usage examples. -->
191+
192+
<section class="examples">
193+
194+
### Examples
195+
196+
```c
197+
#include "stdlib/stats/base/dists/arcsine/kurtosis.h"
198+
#include <stdlib.h>
199+
#include <stdio.h>
200+
201+
int main( void ) {
202+
double a;
203+
double b;
204+
double y;
205+
int i;
206+
207+
for ( i = 0; i < 25; i++ ) {
208+
a = ( (double)rand() / (double)RAND_MAX ) * 20.0 - 20.0;
209+
b = a + ( (double)rand() / (double)RAND_MAX ) * 40.0;
210+
y = stdlib_base_dists_arcsine_kurtosis( a, b );
211+
printf( "a: %lf, b: %lf, Kurt(X;a,b): %lf\n", a, b, y );
212+
}
213+
}
214+
```
215+
216+
</section>
217+
218+
<!-- /.examples -->
219+
220+
</section>
221+
222+
<!-- /.c -->
223+
224+
134225
<!-- 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. -->
135226

136227
<section class="references">

0 commit comments

Comments
 (0)