Skip to content

Commit 76d31e4

Browse files
committed
fix: update the suggested changes
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 397f644 commit 76d31e4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark

lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/benchmark/benchmark.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ bench( format( '%s:mean', pkg ), function benchmark( bm ) {
335335

336336
bm.tic();
337337
for ( i = 0; i < bm.iterations; i++ ) {
338-
dist.a = x[ i % x.length ];
338+
dist.alpha = x[ i % x.length ];
339339
y = dist.mean;
340340
if ( isnan( y ) ) {
341341
bm.fail( 'should not return NaN' );
@@ -510,7 +510,8 @@ bench( format( '%s:cdf', pkg ), function benchmark( bm ) {
510510

511511
bm.tic();
512512
for ( i = 0; i < bm.iterations; i++ ) {
513-
y = dist.cdf( x[ i % x.length ] );
513+
dist.alpha = x[ i % x.length ];
514+
y = dist.cdf;
514515
if ( isnan( y ) ) {
515516
bm.fail( 'should not return NaN' );
516517
}
@@ -544,7 +545,8 @@ bench( format( '%s:pdf', pkg ), function benchmark( bm ) {
544545

545546
bm.tic();
546547
for ( i = 0; i < bm.iterations; i++ ) {
547-
y = dist.pdf( x[ i % x.length ] );
548+
dist.alpha = x[ i % x.length ];
549+
y = dist.pdf;
548550
if ( isnan( y ) ) {
549551
bm.fail( 'should not return NaN' );
550552
}
@@ -578,7 +580,8 @@ bench( format( '%s:quantile', pkg ), function benchmark( bm ) {
578580

579581
bm.tic();
580582
for ( i = 0; i < bm.iterations; i++ ) {
581-
y = dist.quantile( x[ i % x.length ] );
583+
dist.alpha = x[ i % x.length ];
584+
y = dist.quantile;
582585
if ( isnan( y ) ) {
583586
bm.fail( 'should not return NaN' );
584587
}

0 commit comments

Comments
 (0)