From fd465c2f1bee458f350ed4a0bc2e008fecdd6886 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 19 Jan 2025 22:26:58 -0500 Subject: [PATCH] chore: minor clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../entropy/benchmark/benchmark.native.js | 2 +- .../bernoulli/entropy/examples/c/example.c | 2 +- .../dists/bernoulli/entropy/lib/native.js | 1 + .../dists/bernoulli/entropy/manifest.json | 152 +++++++++--------- 4 files changed, 79 insertions(+), 78 deletions(-) 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 index 9adda9e4fda2..169c6b203cae 100644 --- 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 @@ -39,7 +39,7 @@ var opts = { // MAIN // -bench( pkg, opts, function benchmark( b ) { +bench( pkg+'::native', opts, function benchmark( b ) { var len; var p; var 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 7edb0e66fc02..217169924d6c 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 @@ -28,6 +28,6 @@ int main( void ) { for ( i = 0; i < 25; i++ ) { 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 ); + printf( "x: %lf, H(X;p): %lf\n", p, y ); } } diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/lib/native.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/lib/native.js index 9a01e2d518c6..576a280bbb01 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/lib/native.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/lib/native.js @@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' ); /** * Returns the entropy of a Bernoulli distribution. * +* @private * @param {Probability} p - success probability * @returns {PositiveNumber} entropy * diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/manifest.json b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/manifest.json index 76cbed47f8cc..de112674bc8a 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/manifest.json +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/entropy/manifest.json @@ -1,79 +1,79 @@ { - "options": { + "options": { + "task": "build", + "wasm": false + }, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { "task": "build", - "wasm": false + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/math/base/napi/unary", + "@stdlib/math/base/assert/is-nan", + "@stdlib/math/base/special/ln" + ] + }, + { + "task": "benchmark", + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/math/base/assert/is-nan", + "@stdlib/math/base/special/ln" + ] }, - "fields": [ - { - "field": "src", - "resolve": true, - "relative": true - }, - { - "field": "include", - "resolve": true, - "relative": true - }, - { - "field": "libraries", - "resolve": false, - "relative": false - }, - { - "field": "libpath", - "resolve": true, - "relative": false - } - ], - "confs": [ - { - "task": "build", - "wasm": false, - "src": [ - "./src/main.c" - ], - "include": [ - "./include" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "@stdlib/math/base/napi/unary", - "@stdlib/math/base/assert/is-nan", - "@stdlib/math/base/special/ln" - ] - }, - { - "task": "benchmark", - "wasm": false, - "src": [ - "./src/main.c" - ], - "include": [ - "./include" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "@stdlib/math/base/assert/is-nan", - "@stdlib/math/base/special/ln" - ] - }, - { - "task": "examples", - "wasm": false, - "src": [ - "./src/main.c" - ], - "include": [ - "./include" - ], - "libraries": [], - "libpath": [], - "dependencies": [ - "@stdlib/math/base/assert/is-nan", - "@stdlib/math/base/special/ln" - ] - } - ] - } \ No newline at end of file + { + "task": "examples", + "wasm": false, + "src": [ + "./src/main.c" + ], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [ + "@stdlib/math/base/assert/is-nan", + "@stdlib/math/base/special/ln" + ] + } + ] +}