Skip to content

Commit 5889909

Browse files
stdlib-botPlaneshifter
authored andcommitted
chore: update copyright years
1 parent dc9a1f4 commit 5889909

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

lib/node_modules/@stdlib/stats/base/dists/planck/mgf/benchmark/benchmark.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ bench( pkg, function benchmark( b ) {
4141
t = new Float64Array( len );
4242
lambda = new Float64Array( len );
4343
for ( i = 0; i < len; i++ ) {
44-
t[ i ] = uniform(0.0, 10.0);
45-
lambda[ i ] = uniform(0.1, 10.0);
44+
t[ i ] = uniform( 0.0, 10.0 );
45+
lambda[ i ] = uniform( 0.1, 10.0 );
4646
}
4747

4848
b.tic();
@@ -62,16 +62,21 @@ bench( pkg, function benchmark( b ) {
6262

6363
bench( pkg+':factory', function benchmark( b ) {
6464
var mymgf;
65+
var len;
6566
var t;
6667
var y;
6768
var i;
6869

69-
t = uniform( 0.0, 10.0 );
70+
len = 100;
71+
t = new Float64Array( len );
72+
for ( i = 0; i < len; i++ ) {
73+
t[ i ] = uniform( 0.0, 10.0 );
74+
}
7075
mymgf = mgf.factory( 0.3 );
7176

7277
b.tic();
7378
for ( i = 0; i < b.iterations; i++ ) {
74-
y = mymgf( t[ i % t.length ] );
79+
y = mymgf( t[ i % len ] );
7580
if ( isnan( y ) ) {
7681
b.fail( 'should not return NaN' );
7782
}

lib/node_modules/@stdlib/stats/base/dists/planck/mgf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var opts = {
3939

4040
// MAIN //
4141

42-
bench( pkg+'::native', opts, function benchmark( b ) {
42+
bench( pkg + '::native', opts, function benchmark( b ) {
4343
var lambda;
4444
var len;
4545
var t;

lib/node_modules/@stdlib/stats/base/dists/planck/mgf/manifest.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
"dependencies": [
4141
"@stdlib/math/base/napi/binary",
4242
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/math/base/special/expm1",
44-
"@stdlib/math/base/special/pow"
43+
"@stdlib/math/base/special/expm1"
4544
]
4645
},
4746
{
@@ -57,8 +56,7 @@
5756
"libpath": [],
5857
"dependencies": [
5958
"@stdlib/math/base/assert/is-nan",
60-
"@stdlib/math/base/special/expm1",
61-
"@stdlib/math/base/special/pow"
59+
"@stdlib/math/base/special/expm1"
6260
]
6361
},
6462
{
@@ -74,8 +72,7 @@
7472
"libpath": [],
7573
"dependencies": [
7674
"@stdlib/math/base/assert/is-nan",
77-
"@stdlib/math/base/special/expm1",
78-
"@stdlib/math/base/special/pow"
75+
"@stdlib/math/base/special/expm1"
7976
]
8077
}
8178
]

0 commit comments

Comments
 (0)