Skip to content

Commit bebfdee

Browse files
fix: lint errors
1 parent 9e28581 commit bebfdee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ double stdlib_base_dists_bernoulli_pmf( const double x, const double p );
213213
<section class="examples">
214214
215215
### Examples
216+
216217
```c
217218
#include "stdlib/stats/base/dists/bernoulli/pmf.h"
218219
#include "stdlib/math/base/special/round.h"

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/examples/c/examples.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main( void ) {
2828
int i;
2929

3030
for ( i = 0; i < 25; i++ ) {
31-
x = stdlib_base_round( (double)rand() / (double)RAND_MAX ) * 2.0;
31+
x = stdlib_base_round( ( (double)rand() / (double)RAND_MAX ) * 2.0 );
3232
p = ( (double)rand() / (double)RAND_MAX ) ;
3333
y = stdlib_base_dists_bernoulli_pmf( x, p );
3434
printf( "x: %lf , p: %1f, P( X = x; p ): %lf\n", x, p , y );

0 commit comments

Comments
 (0)