Skip to content

Commit 6834752

Browse files
chore: minor updates
1 parent 888232b commit 6834752

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bench( pkg, function benchmark( b ) {
5050

5151
b.tic();
5252
for ( i = 0; i < b.iterations; i++ ) {
53-
y = pmf( x[ i%100 ], p[ i%100 ] );
53+
y = pmf( x[ i % len ], p[ i % len ] );
5454
if ( isnan( y ) ) {
5555
b.fail( 'should not return NaN' );
5656
}
@@ -82,7 +82,7 @@ bench( pkg+':factory', function benchmark( b ) {
8282

8383
b.tic();
8484
for ( i = 0; i < b.iterations; i++ ) {
85-
y = mypmf( x[ i%100 ] );
85+
y = mypmf( x[ i % len ] );
8686
if ( isnan( y ) ) {
8787
b.fail( 'should not return NaN' );
8888
}

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
@@ -59,7 +59,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5959

6060
b.tic();
6161
for ( i = 0; i < b.iterations; i++ ) {
62-
y = pmf( x[ i%100 ], p[ i%100 ] );
62+
y = pmf( x[ i % len ], p[ i % len ] );
6363
if ( isnan( y ) ) {
6464
b.fail( 'should not return NaN' );
6565
}

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/include/stdlib/stats/base/dists/bernoulli/pmf.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-
Evaluates the probability mass function (PMF) for a Bernoulli distribution with success probability `0 <= p <= 1`.
30+
* Evaluates the probability mass function (PMF) for a Bernoulli distribution with success probability `0 <= p <= 1`.
3131
*/
3232
double stdlib_base_dists_bernoulli_pmf( const double x, const double p );
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2626
// MAIN //
2727

2828
/**
29-
* Evaluates the probability mass function (PMF) for a Bernoulli distribution with success probability `0 <= p <= 1`.
29+
* Evaluates the moment-generating function (MGF) for a Bernoulli distribution with success probability `p` at a value `t`.
3030
*
3131
* @param {number} x - input value
3232
* @param {Probability} p - success probability

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' );
2626
// MAIN //
2727

2828
/**
29-
* Evaluates the probability mass function (PMF) for a Bernoulli distribution with success probability `0 <= p <= 1`.
29+
* Evaluates the moment-generating function (MGF) for a Bernoulli distribution with success probability `p` at a value `t`.
3030
*
3131
* @param {number} x - input value
3232
* @param {Probability} p - success probability

lib/node_modules/@stdlib/stats/base/dists/bernoulli/pmf/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"libpath": [],
4040
"dependencies": [
4141
"@stdlib/math/base/napi/binary",
42-
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/math/base/special/round"
42+
"@stdlib/math/base/assert/is-nan"
4443
]
4544
},
4645
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ double stdlib_base_dists_bernoulli_pmf( const double x, const double p ) {
6262
p < 0.0 ||
6363
p > 1.0
6464
) {
65-
return 0.0/0.0; // NaN
65+
return 0.0 / 0.0; // NaN
6666
}
6767
if ( x == 0.0 ) {
6868
return 1.0 - p;

0 commit comments

Comments
 (0)