From b72d47cc52a57ea60be07de5d0b570f2b1e31d01 Mon Sep 17 00:00:00 2001 From: Vivek Maurya Date: Wed, 11 Dec 2024 10:54:01 +0530 Subject: [PATCH 1/6] feat(add C implementation): add stats/base/dists/bernoulli/entropy --- .../base/dists/bernoulli/entropy/README.md | 87 +++++++++ .../bernoulli/entropy/benchmark/c/Makefile | 146 +++++++++++++++ .../bernoulli/entropy/benchmark/c/benchmark.c | 133 ++++++++++++++ .../base/dists/bernoulli/entropy/binding.gyp | 170 ++++++++++++++++++ .../bernoulli/entropy/examples/c/Makefile | 146 +++++++++++++++ .../bernoulli/entropy/examples/c/example.c | 33 ++++ .../base/dists/bernoulli/entropy/include.gypi | 53 ++++++ .../stats/base/dists/bernoulli/entropy.h | 38 ++++ .../dists/bernoulli/entropy/lib/native.js | 61 +++++++ .../dists/bernoulli/entropy/manifest.json | 94 ++++++++++ .../base/dists/bernoulli/entropy/package.json | 3 + .../base/dists/bernoulli/entropy/src/Makefile | 70 ++++++++ .../base/dists/bernoulli/entropy/src/addon.c | 23 +++ .../base/dists/bernoulli/entropy/src/main.c | 51 ++++++ .../bernoulli/entropy/test/test.native.js | 109 +++++++++++ 15 files changed, 1217 insertions(+) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include/stdlib/stats/base/dists/bernoulli/entropy.h create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md index f0b52ae1f06d..0e474ce8b677 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md @@ -130,6 +130,93 @@ for ( i = 0; i < 10; i++ ) { + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/stats/base/dists/bernoulli/entropy.h" +``` + +#### stdlib_base_dists_bernoulli_entropy( p ) + +Returns the [entropy][entropy] of a [Bernoulli][bernoulli-distribution] distribution with success probability `p` (in [nats][nats]). + +```c +double out = stdlib_base_dists_bernoulli_entropy( 0.1 ); +// returns ~0.325 +``` + +The function accepts the following arguments: + +- **x**: `[in] double` minimum support +- **a**: `[in] double` minimum support +- **b**: `[in] double` maximum support + +```c +double stdlib_base_dists_bernoulli_entropy( const double p ); +``` +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/stats/base/dists/bernoulli/entropy.h" +#include +#include +int main( void ) { + double p; + double y; + int i; + + for ( i = 0; i < 25; i++ ) { + p = ( (double)rand() / (double)RAND_MAX ) ; + y = stdlib_base_dists_bernoulli_entropy( p ); + printf( "x: %lf , H(X;p): %lf\n", p , y ); + } +} +``` + +
+ + + +
+ + + @@ -200,11 +199,11 @@ int main( void ) { double p; double y; int i; - + for ( i = 0; i < 25; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ) ; - y = stdlib_base_dists_bernoulli_entropy( p ); - printf( "x: %lf , H(X;p): %lf\n", p , y ); + p = ( (double)rand() / (double)RAND_MAX ); + y = stdlib_base_dists_bernoulli_entropy( p ); + printf( "x: %lf, H(X;p): %lf\n", p, y ); } } ``` diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/Makefile index 0ebf4545e1a9..f69e9da2b4d3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/Makefile +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/Makefile @@ -143,4 +143,4 @@ run: $(c_targets) clean: $(QUIET) -rm -f *.o *.out -.PHONY: clean \ No newline at end of file +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c index c694f78e98bb..26065cee5e95 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c @@ -16,12 +16,12 @@ * limitations under the License. */ +#include #include "stdlib/stats/base/dists/bernoulli/entropy.h" -#include -#include #include +#include +#include #include -#include #define NAME "bernoulli-entropy" #define ITERATIONS 1000000 @@ -71,7 +71,7 @@ static void print_results( double elapsed ) { static double tic( void ) { struct timeval now; gettimeofday( &now, NULL ); - return (double)now.tv_sec + (double)now.tv_usec/1.0e6; + return (double)now.tv_sec + (double)now.tv_usec / 1.0e6; } /** @@ -98,7 +98,7 @@ static double benchmark( void ) { t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ) ; + p = ( (double)rand() / (double)RAND_MAX ); y = stdlib_base_dists_bernoulli_entropy( p ); if ( y != y ) { printf( "should not return NaN\n" ); @@ -119,7 +119,7 @@ int main( void ) { double elapsed; int i; - // Use the current time to seed the random number generator: + // Use the current time to seed the random number generator: srand( time( NULL ) ); print_version(); @@ -127,7 +127,7 @@ int main( void ) { printf( "# c::%s\n", NAME ); elapsed = benchmark(); print_results( elapsed ); - printf( "ok %d benchmark finished\n", i+1 ); + printf( "ok %d benchmark finished\n", i + 1 ); } print_summary( REPEATS, REPEATS ); -} \ No newline at end of file +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/binding.gyp b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/binding.gyp index 507cb00291e7..ec3992233442 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/binding.gyp +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/binding.gyp @@ -167,4 +167,4 @@ ], # end actions }, # end target copy_addon ], # end targets -} \ No newline at end of file +} diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c index 3bb487337ab7..207c60f631aa 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c @@ -29,6 +29,7 @@ * @example * double y = stdlib_base_dists_bernoulli_entropy( 0.1 ); * // returns ~0.325 +* * @example * double y = stdlib_base_dists_bernoulli_entropy( 0.5 ); * // returns ~0.693 diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js index a77342968d5d..c913940b52e1 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js @@ -45,19 +45,19 @@ var opts = { // TESTS // -tape( 'main export is a function', function test( t ) { +tape( 'main export is a function', opts, function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof entropy, 'function', 'main export is a function' ); t.end(); }); -tape( 'if provided `NaN` for `p`, the function returns `NaN`', function test( t ) { +tape( 'if provided `NaN` for `p`, the function returns `NaN`', opts, function test( t ) { var v = entropy( NaN ); t.equal( isnan( v ), true, 'returns NaN' ); t.end(); }); -tape( 'if provided `0` or `1` for `p`, the function returns `0`', function test( t ) { +tape( 'if provided `0` or `1` for `p`, the function returns `0`', opts, function test( t ) { var v = entropy( 0.0 ); t.strictEqual( v, 0.0, 'returns 0' ); @@ -67,7 +67,7 @@ tape( 'if provided `0` or `1` for `p`, the function returns `0`', function test( t.end(); }); -tape( 'if provided a success probability `p` outside of `[0,1]`, the function returns `NaN`', function test( t ) { +tape( 'if provided a success probability `p` outside of `[0,1]`, the function returns `NaN`', opts, function test( t ) { var v; v = entropy( -1.0 ); @@ -85,7 +85,7 @@ tape( 'if provided a success probability `p` outside of `[0,1]`, the function re t.end(); }); -tape( 'the function returns the entropy of a Bernoulli distribution', function test( t ) { +tape( 'the function returns the entropy of a Bernoulli distribution', opts, function test( t ) { var expected; var delta; var tol; From 76198eaa5098e1e1f02ec03356642c0f05596f1b Mon Sep 17 00:00:00 2001 From: Vivek Maurya Date: Wed, 11 Dec 2024 16:30:15 +0530 Subject: [PATCH 3/6] feat(add c implementation): add stats/base/dists/bernoulli/entropy --- .../@stdlib/stats/base/dists/bernoulli/entropy/README.md | 8 ++++---- .../base/dists/bernoulli/entropy/examples/c/example.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md index 46525c2fc073..57160c0e0b53 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md @@ -201,10 +201,10 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ); - y = stdlib_base_dists_bernoulli_entropy( p ); - printf( "x: %lf, H(X;p): %lf\n", p, y ); - } + p = ( (double)rand() / (double)RAND_MAX ); + y = stdlib_base_dists_arcsine_entropy( p ); + printf( "x: %lf, H(X;p): %lf\n", p, y ); + } } ``` diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c index b0a16ed12b1c..7160789f16ab 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c @@ -17,8 +17,8 @@ */ #include "stdlib/stats/base/dists/bernoulli/entropy.h" -#include #include +#include int main( void ) { double p; @@ -26,8 +26,8 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ) ; + p = ( (double)rand() / (double)RAND_MAX ); y = stdlib_base_dists_bernoulli_entropy( p ); - printf( "x: %lf , H(X;p): %lf\n", p , y ); + printf( "x: %lf , H(X;p): %lf\n", p, y ); } -} \ No newline at end of file +} From 31fa78157b24f81a0d69f4e52b4d59991bf9efca Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:05:49 +0000 Subject: [PATCH 4/6] chore: update copyright years --- .../@stdlib/stats/base/dists/bernoulli/entropy/src/main.c | 2 +- .../stats/base/dists/bernoulli/entropy/test/test.native.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c index 207c60f631aa..ebd3284a496e 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/src/main.c @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js index c913940b52e1..effb08ed3fa2 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/test/test.native.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2024 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From c3b490ed44a1e29d51cc0032cdddf71ef4d61044 Mon Sep 17 00:00:00 2001 From: Vivek Maurya Date: Thu, 12 Dec 2024 22:46:24 +0530 Subject: [PATCH 5/6] feat(add c implementation): add stats/base/dists/bernoulli/entropy --- .../base/dists/bernoulli/entropy/README.md | 6 +- .../bernoulli/entropy/benchmark/benchmark.js | 11 ++- .../entropy/benchmark/benchmark.native.js | 67 +++++++++++++++++++ .../bernoulli/entropy/benchmark/c/benchmark.c | 11 +-- .../bernoulli/entropy/examples/c/Makefile | 2 +- .../bernoulli/entropy/examples/c/example.c | 2 +- .../base/dists/bernoulli/entropy/include.gypi | 2 +- .../dists/bernoulli/entropy/lib/native.js | 2 +- .../dists/bernoulli/entropy/manifest.json | 23 ++----- .../base/dists/bernoulli/entropy/src/Makefile | 2 +- .../base/dists/bernoulli/entropy/src/main.c | 2 +- 11 files changed, 96 insertions(+), 34 deletions(-) create mode 100644 lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.native.js diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md index 57160c0e0b53..993a07e93e81 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md @@ -167,7 +167,7 @@ double out = stdlib_base_dists_bernoulli_entropy( 0.1 ); The function accepts the following arguments: -- **p**: `[in] double` maximum support +- **p**: `[in] double` success probability ```c double stdlib_base_dists_bernoulli_entropy( const double p ); @@ -201,8 +201,8 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ); - y = stdlib_base_dists_arcsine_entropy( p ); + p = (double)rand() / ( (double)RAND_MAX + 1.0 ); + y = stdlib_base_dists_bernoulli_entropy( p ); printf( "x: %lf, H(X;p): %lf\n", p, y ); } } diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.js index e122daa4c105..9298ac5cb302 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.js @@ -21,6 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pkg = require( './../package.json' ).name; @@ -30,14 +31,20 @@ var entropy = require( './../lib' ); // MAIN // bench( pkg, function benchmark( b ) { + var len; var p; var y; var i; + len = 100; + p = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + p[ i ] = randu(); + } + b.tic(); for ( i = 0; i < b.iterations; i++ ) { - p = randu(); - y = entropy( p ); + y = entropy( p[ i % len ] ); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.native.js new file mode 100644 index 000000000000..9adda9e4fda2 --- /dev/null +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/benchmark.native.js @@ -0,0 +1,67 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var resolve = require( 'path' ).resolve; +var bench = require( '@stdlib/bench' ); +var Float64Array = require( '@stdlib/array/float64' ); +var randu = require( '@stdlib/random/base/randu' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var tryRequire = require( '@stdlib/utils/try-require' ); +var pkg = require( './../package.json' ).name; + + +// VARIABLES // + +var entropy = tryRequire( resolve( __dirname, './../lib/native.js' ) ); +var opts = { + 'skip': ( entropy instanceof Error ) +}; + + +// MAIN // + +bench( pkg, opts, function benchmark( b ) { + var len; + var p; + var y; + var i; + + len = 100; + p = new Float64Array( len ); + for ( i = 0; i < len; i++ ) { + p[ i ] = randu(); + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = entropy( p[ i % len ] ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c index 26065cee5e95..8b10f17bbadd 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/benchmark/c/benchmark.c @@ -16,12 +16,12 @@ * limitations under the License. */ -#include #include "stdlib/stats/base/dists/bernoulli/entropy.h" #include #include #include #include +#include #define NAME "bernoulli-entropy" #define ITERATIONS 1000000 @@ -91,15 +91,18 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double p; + double p[ 100 ]; double y; double t; int i; + for ( i = 0; i < 100; i++ ) { + p[ i ] = rand_double(); + } + t = tic(); for ( i = 0; i < ITERATIONS; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ); - y = stdlib_base_dists_bernoulli_entropy( p ); + y = stdlib_base_dists_bernoulli_entropy( p[ i%100 ] ); if ( y != y ) { printf( "should not return NaN\n" ); break; diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/Makefile b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/Makefile index d53ef397c77d..6aed70daf167 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/Makefile +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/Makefile @@ -143,4 +143,4 @@ run: $(c_targets) clean: $(QUIET) -rm -f *.o *.out -.PHONY: clean \ No newline at end of file +.PHONY: clean diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c index 7160789f16ab..7edb0e66fc02 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/examples/c/example.c @@ -26,7 +26,7 @@ int main( void ) { int i; for ( i = 0; i < 25; i++ ) { - p = ( (double)rand() / (double)RAND_MAX ); + p = (double)rand() / ( (double)RAND_MAX + 1.0 ); y = stdlib_base_dists_bernoulli_entropy( p ); printf( "x: %lf , H(X;p): %lf\n", p, y ); } diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include.gypi b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include.gypi index c6495fc1da3f..575cb043c0bf 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include.gypi +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/include.gypi @@ -50,4 +50,4 @@ ' Date: Sat, 28 Dec 2024 12:55:56 -0500 Subject: [PATCH 6/6] Update lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md Signed-off-by: Philipp Burckhardt --- .../@stdlib/stats/base/dists/bernoulli/entropy/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md index 993a07e93e81..74def01cf3a5 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/README.md @@ -195,6 +195,7 @@ double stdlib_base_dists_bernoulli_entropy( const double p ); #include "stdlib/stats/base/dists/bernoulli/entropy.h" #include #include + int main( void ) { double p; double y;