From dbfbb36bd30362f5915e9d813da0f2c42be3a0cb Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Tue, 18 Feb 2025 12:25:02 -0800 Subject: [PATCH 1/2] fix: update isnan checks to use appropriate parameters --- 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: na - 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: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na --- --- .../stats/base/dists/arcsine/ctor/benchmark/benchmark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/arcsine/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/arcsine/ctor/benchmark/benchmark.js index e1ec6a7311ab..a0d6fad46614 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/arcsine/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/arcsine/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:a', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.a ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:b', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.b ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); From 732a951a686119e87b2ba9210a19461eef2e4efe Mon Sep 17 00:00:00 2001 From: Karan Anand Date: Wed, 19 Feb 2025 02:54:24 -0800 Subject: [PATCH 2/2] fix: update isnan checks to use appropriate parameters throughout the package --- 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: na - 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 --- --- .../stats/base/dists/bernoulli/ctor/benchmark/benchmark.js | 2 +- .../stats/base/dists/beta/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/betaprime/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/binomial/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/cauchy/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/chi/ctor/benchmark/benchmark.js | 2 +- .../stats/base/dists/chisquare/ctor/benchmark/benchmark.js | 2 +- .../stats/base/dists/cosine/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/degenerate/ctor/benchmark/benchmark.js | 2 +- .../base/dists/discrete-uniform/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/erlang/ctor/benchmark/benchmark.js | 4 ++-- .../base/dists/exponential/ctor/benchmark/benchmark.js | 2 +- .../@stdlib/stats/base/dists/f/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/frechet/ctor/benchmark/benchmark.js | 6 +++--- .../stats/base/dists/gamma/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/geometric/ctor/benchmark/benchmark.js | 2 +- .../stats/base/dists/gumbel/ctor/benchmark/benchmark.js | 4 ++-- .../base/dists/hypergeometric/ctor/benchmark/benchmark.js | 6 +++--- .../stats/base/dists/invgamma/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/logistic/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/lognormal/ctor/benchmark/benchmark.js | 4 ++-- .../dists/negative-binomial/ctor/benchmark/benchmark.js | 4 ++-- .../base/dists/pareto-type1/ctor/benchmark/benchmark.js | 4 ++-- .../stats/base/dists/poisson/ctor/benchmark/benchmark.js | 2 +- .../stats/base/dists/uniform/ctor/benchmark/benchmark.js | 4 ++-- 25 files changed, 45 insertions(+), 45 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js index a316f0e6ab81..1784a39c37ad 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js @@ -106,7 +106,7 @@ bench( pkg+'::set:p', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.p ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/beta/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/beta/ctor/benchmark/benchmark.js index 8c054aa289d5..1779c5f89b36 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/beta/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/beta/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:alpha', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.alpha ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/betaprime/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/betaprime/ctor/benchmark/benchmark.js index 3d9cbe5f55b4..f8665b394b3d 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/betaprime/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/betaprime/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:alpha', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.alpha ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/binomial/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/binomial/ctor/benchmark/benchmark.js index ac2fca49682a..f05dc876ac04 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/binomial/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/binomial/ctor/benchmark/benchmark.js @@ -113,7 +113,7 @@ bench( pkg+'::set:n', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.n ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -171,7 +171,7 @@ bench( pkg+'::set:p', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.p ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/cauchy/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/cauchy/ctor/benchmark/benchmark.js index e05c7d36f9ae..3e99e9c4fe0d 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/cauchy/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/cauchy/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:x0', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.x0 ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:gamma', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.gamma ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/chi/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/chi/ctor/benchmark/benchmark.js index 222cedcee9a4..7c4fce9734e0 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/chi/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/chi/ctor/benchmark/benchmark.js @@ -105,7 +105,7 @@ bench( pkg+'::set:k', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.k ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/chisquare/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/chisquare/ctor/benchmark/benchmark.js index 5a8263c49cb9..e45ca5676c96 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/chisquare/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/chisquare/ctor/benchmark/benchmark.js @@ -105,7 +105,7 @@ bench( pkg+'::set:k', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.k ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/cosine/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/cosine/ctor/benchmark/benchmark.js index 1434b9c80518..479bec8237f3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/cosine/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/cosine/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:mu', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.mu ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:s', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.s ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/degenerate/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/degenerate/ctor/benchmark/benchmark.js index bd93c0eb580b..196ff0dd83fe 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/degenerate/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/degenerate/ctor/benchmark/benchmark.js @@ -105,7 +105,7 @@ bench( pkg+'::set:mu', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.mu ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/ctor/benchmark/benchmark.js index da5d9757ef42..ef5d3de87f20 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:a', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.a ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:b', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.b ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/erlang/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/erlang/ctor/benchmark/benchmark.js index e57521b73fc0..1a7ee7d8bf2a 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/erlang/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/erlang/ctor/benchmark/benchmark.js @@ -113,7 +113,7 @@ bench( pkg+'::set:k', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.k ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -171,7 +171,7 @@ bench( pkg+'::set:lambda', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.lambda ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/exponential/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/exponential/ctor/benchmark/benchmark.js index ca3a1b6b64c9..37a7ab9a9ac2 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/exponential/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/exponential/ctor/benchmark/benchmark.js @@ -105,7 +105,7 @@ bench( pkg+'::set:lambda', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.lambda ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/f/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/f/ctor/benchmark/benchmark.js index 92b979030ad4..59d1b9055fae 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/f/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/f/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:d1', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.d1 ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:d2', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.d2 ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark/benchmark.js index 3abdb6b9a89a..a2e5b90c363b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark/benchmark.js @@ -119,7 +119,7 @@ bench( pkg+'::set:alpha', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.a ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -181,7 +181,7 @@ bench( pkg+'::set:s', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.b ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -243,7 +243,7 @@ bench( pkg+'::set:m', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.c ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gamma/ctor/benchmark/benchmark.js index 3ee50ab3ecff..339ebae643e6 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:alpha', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.alpha ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/geometric/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/geometric/ctor/benchmark/benchmark.js index 61099b245bb8..bbb0bf423262 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/geometric/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/geometric/ctor/benchmark/benchmark.js @@ -106,7 +106,7 @@ bench( pkg+'::set:p', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.p ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/gumbel/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gumbel/ctor/benchmark/benchmark.js index e926bc54e36f..07ab853b8fcb 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gumbel/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gumbel/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:mu', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.mu ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/benchmark/benchmark.js index c68bb2fa3177..369032d82a1b 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/benchmark/benchmark.js @@ -119,7 +119,7 @@ bench( pkg+'::set:N', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.N ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -181,7 +181,7 @@ bench( pkg+'::set:K', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.K ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -243,7 +243,7 @@ bench( pkg+'::set:n', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.n ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/invgamma/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/invgamma/ctor/benchmark/benchmark.js index 6b5c959c3cde..f284010ffcf3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/invgamma/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/invgamma/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:alpha', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.alpha ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/logistic/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/logistic/ctor/benchmark/benchmark.js index 7bd5bb79b088..c8ef2f798323 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/logistic/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/logistic/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:mu', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.mu ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:s', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.s ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/benchmark/benchmark.js index bad9816541d5..99d3bf74fa48 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:mu', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.mu ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:sigma', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.sigma ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/negative-binomial/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/negative-binomial/ctor/benchmark/benchmark.js index 2562e14dbb8f..3bc42b9925c5 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/negative-binomial/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/negative-binomial/ctor/benchmark/benchmark.js @@ -113,7 +113,7 @@ bench( pkg+'::set:r', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.r ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -171,7 +171,7 @@ bench( pkg+'::set:p', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.p ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/ctor/benchmark/benchmark.js index d5ca00880a2f..26f72f46f617 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/pareto-type1/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:alpha', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.alpha ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:beta', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.beta ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/poisson/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/poisson/ctor/benchmark/benchmark.js index f98e64d7f409..347455749ddf 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/poisson/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/poisson/ctor/benchmark/benchmark.js @@ -103,7 +103,7 @@ bench( pkg+'::set:lambda', function benchmark( b ) { } } b.toc(); - if ( isnan( y ) ) { + if ( isnan( dist.lambda ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); diff --git a/lib/node_modules/@stdlib/stats/base/dists/uniform/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/uniform/ctor/benchmark/benchmark.js index ff1085e69e06..db08829ad4b6 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/uniform/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/uniform/ctor/benchmark/benchmark.js @@ -112,7 +112,7 @@ bench( pkg+'::set:a', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y[ i % len] ) ) { + if ( isnan( dist.a ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' ); @@ -170,7 +170,7 @@ bench( pkg+'::set:b', function benchmark( bm ) { } } bm.toc(); - if ( isnan( y[ i % len ] ) ) { + if ( isnan( dist.b ) ) { bm.fail( 'should not return NaN' ); } bm.pass( 'benchmark finished' );