File tree Expand file tree Collapse file tree 4 files changed +3
-14
lines changed
lib/node_modules/@stdlib/stats/base/dists/bernoulli/skewness Expand file tree Collapse file tree 4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 22
33@license Apache-2.0
44
5- Copyright (c) 2024 The Stdlib Authors.
5+ Copyright (c) 2018 The Stdlib Authors.
66
77Licensed under the Apache License, Version 2.0 (the "License");
88you may not use this file except in compliance with the License.
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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*
Original file line number Diff line number Diff line change 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*/
4735double stdlib_base_dists_bernoulli_skewness ( const double p ) {
4836 if (
You can’t perform that action at this time.
0 commit comments