Skip to content

Commit 7c1a730

Browse files
fix: example errors
1 parent d53af9a commit 7c1a730

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/examples/c

1 file changed

+1
-1
lines changed

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 < 10; 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)