Skip to content

Commit 8e97846

Browse files
chore: minor updates
1 parent 8732ca7 commit 8e97846

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ int main( void ) {
219219
int i;
220220
221221
for ( i = 0; i < 10; i++ ) {
222-
t = random_uniform( 2.0, 4.0 );
222+
t = random_uniform( -2.0, 2.0 );
223223
p = random_uniform( 0.0, 1.0 );
224224
y = stdlib_base_dists_bernoulli_mgf( t, p );
225225
printf( "t: %lf , p: %1f, M_X(t;p): %lf\n", t, p , y );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bench( pkg, function benchmark( b ) {
4949

5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
52-
y = mgf( t[ i%100 ], p[ i%100 ] );
52+
y = mgf( t[ i % len ], p[ i % len ] );
5353
if ( isnan( y ) ) {
5454
b.fail( 'should not return NaN' );
5555
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5858

5959
b.tic();
6060
for ( i = 0; i < b.iterations; i++ ) {
61-
y = mgf( t[ i%100 ], p[ i%100 ] );
61+
y = mgf( t[ i % len ], p[ i % len ] );
6262
if ( isnan( y ) ) {
6363
b.fail( 'should not return NaN' );
6464
}

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

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

3434
for ( i = 0; i < 10; i++ ) {
35-
t = random_uniform( 2.0, 4.0 );
35+
t = random_uniform( -2.0, 2.0 );
3636
p = random_uniform( 0.0, 1.0 );
3737
y = stdlib_base_dists_bernoulli_mgf( t, p );
3838
printf( "t: %lf , p: %1f, M_X(t;p): %lf\n", t, p , y );

lib/node_modules/@stdlib/stats/base/dists/bernoulli/mgf/include/stdlib/stats/base/dists/bernoulli/mgf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
c
30+
* Evaluates the moment-generating function (MGF) for a Bernoulli distribution with success probability `p`.
3131
*/
3232
double stdlib_base_dists_bernoulli_mgf( const double t, const double p );
3333

0 commit comments

Comments
 (0)