Skip to content

Commit 9e40fbe

Browse files
chore: minor updates
1 parent 10b7e1e commit 9e40fbe

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/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 = cdf( x[ i%100 ], p[ i%100 ] );
52+
y = cdf( x[ 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/cdf/benchmark/benchmark.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4949
len = 100;
5050
x = new Float64Array( len );
5151
for ( i = 0; i < len; i++ ) {
52-
x[ i ] = uniform( 2.0, 3.0 );
52+
x[ i ] = uniform( -1.0, 2.0 );
5353
}
5454
p = new Float64Array( len );
5555
for ( i = 0; i < len; i++ ) {
@@ -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 = cdf( x[ i%100 ], p[ i%100 ] );
61+
y = cdf( x[ 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/cdf/include/stdlib/stats/base/dists/bernoulli/cdf.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 cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
30+
* Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
3131
*/
3232
double stdlib_base_dists_bernoulli_cdf( const double x, const double p );
3333

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/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 cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
29+
* Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p` at a value `x`.
3030
*
3131
* @param {number} x - input value
3232
* @param {Probability} p - success probability

lib/node_modules/@stdlib/stats/base/dists/bernoulli/cdf/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 cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p`.
29+
* Evaluates the cumulative distribution function (CDF) for a Bernoulli distribution with success probability `p` at a value `x`.
3030
*
3131
* @param {number} x - input value
3232
* @param {Probability} p - success probability

0 commit comments

Comments
 (0)