Skip to content

Commit 9ef0172

Browse files
fix: lint errors
1 parent b345b23 commit 9ef0172

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Evaluates the [cumulative distribution function][cdf] for a [Bernoulli][bernoull
5959

6060
```javascript
6161
var y = cdf( 1.0, 0.5 );
62-
// returns 1.0
62+
// returns 0.5
6363

6464
y = cdf( 0.5, 0.5 );
6565
// returns 0.5
@@ -161,7 +161,7 @@ Evaluates the cumulative distribution function (CDF) for an bernoulli distributi
161161

162162
```c
163163
double y = stdlib_base_dists_bernoulli_cdf( 0.5, 0.5 );
164-
// returns ~0.5
164+
// returns ~1.0
165165

166166
y = stdlib_base_dists_bernoulli_cdf( 2.0, 0.1 );
167167
// returns ~1.0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var cdf = tryRequire( resolve( __dirname, './../lib/native.js' ) );
3434
var opts = {
3535
'skip': ( cdf instanceof Error )
3636
};
37-
opts,
37+
3838

3939
// MAIN //
4040

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ double stdlib_base_dists_bernoulli_cdf( const double x, const double p ) {
6666
if ( x >= 1.0 ) {
6767
return 1.0;
6868
}
69-
return 1.0 - stdlib_base_is_nan( p );
69+
return 1.0 - p ;
7070
}

0 commit comments

Comments
 (0)