Skip to content

Commit 3a27ab7

Browse files
committed
refactor: added include in main.c and fixed the JS benchmark number generation
--- 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: na - 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: missing_dependencies - task: lint_c_examples status: na - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent bb51274 commit 3a27ab7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/benchmark/benchmark.native.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5555
n = new Float64Array( len );
5656
x = new Float64Array( len );
5757
for ( i = 0; i < len; i++ ) {
58-
N[ i ] = round( ( randu() * 90.0 ) + 10.0 );
59-
K[ i ] = round( randu() * N[ i ] );
60-
n[ i ] = round( randu() * N[ i ] );
61-
x[ i ] = round( randu() * n[ i ] );
58+
N[ i ] = round( randu()*100.0 );
59+
K[ i ] = round( randu()*N );
60+
n[ i ] = round( randu()*N );
61+
x[ i ] = round( randu()*10.0 );
6262
}
6363

6464
b.tic();

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/pmf/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "stdlib/math/base/special/factorialln.h"
2424
#include "stdlib/math/base/special/max.h"
2525
#include "stdlib/math/base/special/min.h"
26+
#include "stdlib/stats/base/dists/hypergeometric/pmf.h"
2627

2728
/**
2829
* Evaluates the probability mass function (PMF) for a hypergeometric distribution with population size `N`, subpopulation size `K`, and number of draws `n`.

0 commit comments

Comments
 (0)