Skip to content

Commit 2cc43a8

Browse files
fix: lint errors
1 parent 757c3aa commit 2cc43a8

File tree

1 file changed

+11
-8
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf

1 file changed

+11
-8
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ The function accepts the following arguments:
188188
```c
189189
double stdlib_base_dists_bernoulli_cdf( const double x, const double p );
190190
```
191+
191192
</section>
193+
192194
<!-- /.usage -->
193195
194196
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
@@ -204,23 +206,24 @@ double stdlib_base_dists_bernoulli_cdf( const double x, const double p );
204206
<section class="examples">
205207
206208
### Examples
209+
207210
```c
208211
#include "stdlib/stats/base/dists/bernoulli/cdf.h"
209212
#include <stdlib.h>
210213
#include <stdio.h>
211214
212215
int main( void ) {
213-
double p;
216+
double p;
214217
double x;
215-
double y;
216-
int i;
218+
double y;
219+
int i;
217220
218-
for ( i = 0; i < 25; i++ ) {
221+
for ( i = 0; i < 25; i++ ) {
219222
x = ( (double)rand() / (double)RAND_MAX ) * 5.0;
220-
p = ( (double)rand() / (double)RAND_MAX ) ;
221-
y = stdlib_base_dists_bernoulli_cdf( x, p );
222-
printf( "x: %lf , p: %1f, F(X;p): %lf\n", x, p , y );
223-
}
223+
p = ( (double)rand() / (double)RAND_MAX ) ;
224+
y = stdlib_base_dists_bernoulli_cdf( x, p );
225+
printf( "x: %lf , p: %1f, F(X;p): %lf\n", x, p , y );
226+
}
224227
}
225228
```
226229

0 commit comments

Comments
 (0)