Skip to content

Commit 2e0c64f

Browse files
chore: update benchmark.js manifest.json
--- 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 ---
1 parent eb857ba commit 2e0c64f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/benchmark/benchmark.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ bench( pkg, function benchmark( b ) {
6666

6767
bench( pkg+':factory', function benchmark( b ) {
6868
var myquantile;
69+
var len;
6970
var mu;
7071
var c;
7172
var p;
@@ -75,10 +76,14 @@ bench( pkg+':factory', function benchmark( b ) {
7576
mu = 10.0;
7677
c = 4.0;
7778
myquantile = quantile.factory( mu, c );
79+
p = new Float64Array( len );
80+
81+
for ( i = 0; i < len; i++ ) {
82+
p[ i ] = uniform( 0.0, 1.0 );
83+
}
7884

7985
b.tic();
8086
for ( i = 0; i < b.iterations; i++ ) {
81-
p = uniform( 0.0, 1.0 );
8287
y = myquantile( p );
8388
if ( isnan( y ) ) {
8489
b.fail( 'should not return NaN' );

lib/node_modules/@stdlib/stats/base/dists/levy/quantile/manifest.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@
4040
"dependencies": [
4141
"@stdlib/math/base/napi/ternary",
4242
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/constants/float64/pinf",
44-
"@stdlib/constants/float64/ninf",
45-
"@stdlib/math/base/special/erfcinv",
46-
"@stdlib/constants/float64/eps"
43+
"@stdlib/math/base/special/erfcinv"
4744
]
4845
},
4946
{
@@ -62,8 +59,7 @@
6259
"@stdlib/math/base/special/erfcinv",
6360
"@stdlib/constants/float64/ninf",
6461
"@stdlib/constants/float64/pinf",
65-
"@stdlib/constants/float64/eps",
66-
"@stdlib/random/base/uniform"
62+
"@stdlib/constants/float64/eps"
6763
]
6864
},
6965
{

0 commit comments

Comments
 (0)