Skip to content

Commit ba78aa0

Browse files
fix: lint errors
1 parent 611339b commit ba78aa0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ 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 );
65-
// returns 1.0
65+
// returns 0.5
6666
```
6767

6868
If provided `NaN` as any argument, the function returns `NaN`.
@@ -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
@@ -217,8 +217,8 @@ int main( void ) {
217217
double x;
218218
double y;
219219
int i;
220-
221-
for ( i = 0; i < 25; i++ ) {
220+
221+
for ( i = 0; i < 25; i++ ) {
222222
x = ( (double)rand() / (double)RAND_MAX ) * 5.0;
223223
p = ( (double)rand() / (double)RAND_MAX ) ;
224224
y = stdlib_base_dists_bernoulli_cdf( x, p );

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)