Skip to content

Commit d53af9a

Browse files
fix: example errors
2 parents bebfdee + 672d072 commit d53af9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2024 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ int main( void ) {
2727
double y;
2828
int i;
2929

30-
for ( i = 0; i < 25; i++ ) {
30+
for ( i = 0; i < 10; i++ ) {
3131
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 );
34-
printf( "x: %lf , p: %1f, P( X = x; p ): %lf\n", x, p , y );
34+
printf( "x: %lf , p: %1f, P( X = x; p ): %lf\n", x, p, y );
3535
}
3636
}

0 commit comments

Comments
 (0)