Skip to content

Commit c118bc9

Browse files
committed
fix: formayt errors
1 parent 1d19d0c commit c118bc9

File tree

4 files changed

+97
-92
lines changed

4 files changed

+97
-92
lines changed

lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/benchmark/benchmark.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var randu = require( '@stdlib/random/base/randu' );
24+
var Float64Array = require( '@stdlib/array/float64' );
25+
var uniform = require( '@stdlib/random/base/uniform' );
2526
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2627
var EPS = require( '@stdlib/constants/float64/eps' );
2728
var pkg = require( './../package.json' ).name;
@@ -32,14 +33,18 @@ var skewness = require( './../lib' );
3233

3334
bench( pkg, function benchmark( b ) {
3435
var beta;
36+
var len;
3537
var mu;
3638
var y;
3739
var i;
3840

41+
len = 100;
42+
mu = new Float64Array( len );
43+
beta = new Float64Array( len );
3944
b.tic();
4045
for ( i = 0; i < b.iterations; i++ ) {
41-
mu = ( randu()*100.0 ) - 50.0;
42-
beta = ( randu()*20.0 ) + EPS;
46+
mu[ i ] = uniform( -50.0, 50.0 );
47+
beta[ i ] = uniform( EPS, 20.0 );
4348
y = skewness( mu, beta );
4449
if ( isnan( y ) ) {
4550
b.fail( 'should not return NaN' );

lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/benchmark/benchmark.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var Float64Array = require( '@stdlib/array/float64' );
2626
var tryRequire = require( '@stdlib/utils/try-require' );
27-
var randu = require( '@stdlib/random/base/randu' );
27+
var uniform = require( '@stdlib/random/base/uniform' );
2828
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2929
var EPS = require( '@stdlib/constants/float64/eps' );
3030
var pkg = require( './../package.json' ).name;
@@ -51,8 +51,8 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5151
mu = new Float64Array( len );
5252
beta = new Float64Array( len );
5353
for ( i = 0; i < len; i++ ) {
54-
mu[ i ] = ( randu() * 100.0 ) - 50.0;
55-
beta[ i ] = ( randu() * 20.0 ) + EPS;
54+
mu[ i ] = uniform( -50.0, 50.0 );
55+
beta[ i ] = uniform( EPS, 20.0 );
5656
}
5757

5858
b.tic();
Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,86 @@
11
{
2-
"options": {
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
330
"task": "build",
4-
"wasm": false
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math/base/napi/binary",
42+
"@stdlib/math/base/special/sqrt",
43+
"@stdlib/math/base/special/riemann-zeta",
44+
"@stdlib/math/base/assert/is-nan",
45+
"@stdlib/constants/float64/pi"
46+
]
47+
},
48+
{
49+
"task": "benchmark",
50+
"wasm": false,
51+
"src": [
52+
"./src/main.c"
53+
],
54+
"include": [
55+
"./include"
56+
],
57+
"libraries": [],
58+
"libpath": [],
59+
"dependencies": [
60+
"@stdlib/math/base/assert/is-nan",
61+
"@stdlib/constants/float64/eps",
62+
"@stdlib/math/base/special/sqrt",
63+
"@stdlib/math/base/special/riemann-zeta",
64+
"@stdlib/constants/float64/pi"
65+
]
566
},
6-
"fields": [
7-
{
8-
"field": "src",
9-
"resolve": true,
10-
"relative": true
11-
},
12-
{
13-
"field": "include",
14-
"resolve": true,
15-
"relative": true
16-
},
17-
{
18-
"field": "libraries",
19-
"resolve": false,
20-
"relative": false
21-
},
22-
{
23-
"field": "libpath",
24-
"resolve": true,
25-
"relative": false
26-
}
27-
],
28-
"confs": [
29-
{
30-
"task": "build",
31-
"wasm": false,
32-
"src": [
33-
"./src/main.c"
34-
],
35-
"include": [
36-
"./include"
37-
],
38-
"libraries": [],
39-
"libpath": [],
40-
"dependencies": [
41-
"@stdlib/math/base/napi/binary",
42-
"@stdlib/math/base/special/sqrt",
43-
"@stdlib/math/base/special/riemann-zeta",
44-
"@stdlib/math/base/assert/is-nan",
45-
"@stdlib/constants/float64/pi"
46-
]
47-
},
48-
{
49-
"task": "benchmark",
50-
"wasm": false,
51-
"src": [
52-
"./src/main.c"
53-
],
54-
"include": [
55-
"./include"
56-
],
57-
"libraries": [],
58-
"libpath": [],
59-
"dependencies": [
60-
"@stdlib/math/base/assert/is-nan",
61-
"@stdlib/constants/float64/eps",
62-
"@stdlib/math/base/special/sqrt",
63-
"@stdlib/math/base/special/riemann-zeta",
64-
"@stdlib/constants/float64/pi"
65-
]
66-
},
67-
{
68-
"task": "examples",
69-
"wasm": false,
70-
"src": [
71-
"./src/main.c"
72-
],
73-
"include": [
74-
"./include"
75-
],
76-
"libraries": [],
77-
"libpath": [],
78-
"dependencies": [
79-
"@stdlib/math/base/special/sqrt",
80-
"@stdlib/math/base/special/riemann-zeta",
81-
"@stdlib/math/base/assert/is-nan",
82-
"@stdlib/constants/float64/pi"
83-
]
84-
}
85-
]
86-
}
67+
{
68+
"task": "examples",
69+
"wasm": false,
70+
"src": [
71+
"./src/main.c"
72+
],
73+
"include": [
74+
"./include"
75+
],
76+
"libraries": [],
77+
"libpath": [],
78+
"dependencies": [
79+
"@stdlib/math/base/special/sqrt",
80+
"@stdlib/math/base/special/riemann-zeta",
81+
"@stdlib/math/base/assert/is-nan",
82+
"@stdlib/constants/float64/pi"
83+
]
84+
}
85+
]
86+
}

lib/node_modules/@stdlib/stats/base/dists/gumbel/skewness/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
/**
2525
* Returns the skewness for a Gumbel distribution with location `mu` and scale `beta`.
2626
*
27-
* @param {number} mu - location parameter
28-
* @param {PositiveNumber} beta - scale parameter
29-
* @returns {number} skewness
27+
* @param mu location parameter
28+
* @param beta scale parameter
29+
* @returns skewness
3030
*
3131
* @example
3232
* double y = stdlib_base_dists_gumbel_skewness( 0.0, 1.0 );

0 commit comments

Comments
 (0)