Skip to content

Commit afcebed

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 69b6bdc commit afcebed

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
@license Apache-2.0
44
5-
Copyright (c) 2024 The Stdlib Authors.
5+
Copyright (c) 2018 The Stdlib Authors.
66
77
Licensed under the Apache License, Version 2.0 (the "License");
88
you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
3939
len = 100;
4040
p = new Float64Array( len );
4141
for ( i = 0; i < len; i++ ) {
42-
p[ i ] = uniform( 0.0, 10.0 );
42+
p[ i ] = uniform( 0.0, 1.0 );
4343
}
4444

4545
b.tic();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
2828
/**
2929
* Returns the skewness of a Bernoulli distribution.
3030
*
31+
* @private
3132
* @param {Probability} p - success probability
3233
* @returns {PositiveNumber} skewness
3334
*

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@
3131
* @example
3232
* double y = stdlib_base_dists_bernoulli_skewness( 0.1 );
3333
* // returns ~2.667
34-
*
35-
* @example
36-
* double y = stdlib_base_dists_bernoulli_skewness( 0.5 );
37-
* // returns ~0.0
38-
*
39-
* @example
40-
* double y = stdlib_base_dists_bernoulli_skewness( 1.1 );
41-
* // returns ~NaN
42-
*
43-
* @example
44-
* double y = stdlib_base_dists_bernoulli_skewness( NaN );
45-
* // returns ~NaN
4634
*/
4735
double stdlib_base_dists_bernoulli_skewness( const double p ) {
4836
if (

0 commit comments

Comments
 (0)