Skip to content

Commit 36d8b5f

Browse files
committed
lint
1 parent b760e76 commit 36d8b5f

File tree

2 files changed

+66
-67
lines changed

2 files changed

+66
-67
lines changed
Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
{
2-
"name": "@stdlib/stats/incr/nanprod",
3-
"version": "0.0.0",
4-
"description": "Compute a product incrementally, ignoring `NaN` values.",
5-
"license": "Apache-2.0",
6-
"author": {
7-
"name": "The Stdlib Authors",
8-
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9-
},
10-
"contributors": [
11-
{
12-
"name": "The Stdlib Authors",
13-
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14-
}
15-
],
16-
"main": "./lib",
17-
"directories": {
18-
"benchmark": "./benchmark",
19-
"doc": "./docs",
20-
"example": "./examples",
21-
"lib": "./lib",
22-
"test": "./test"
23-
},
24-
"types": "./docs/types",
25-
"scripts": {},
26-
"homepage": "https://github.com/stdlib-js/stdlib.git",
27-
"repository": {
28-
"type": "git",
29-
"url": "git://github.com/stdlib-js/stdlib.git"
30-
},
31-
"bugs": {
32-
"url": "https://github.com/stdlib-js/stdlib/issues"
33-
},
34-
"dependencies": {},
35-
"devDependencies": {},
36-
"engines": {
37-
"node": ">=0.10.0",
38-
"npm": ">2.7.0"
39-
},
40-
"os": [
41-
"aix",
42-
"darwin",
43-
"freebsd",
44-
"linux",
45-
"macos",
46-
"openbsd",
47-
"sunos",
48-
"win32",
49-
"windows"
50-
],
51-
"keywords": [
52-
"stdlib",
53-
"stdmath",
54-
"statistics",
55-
"stats",
56-
"mathematics",
57-
"math",
58-
"multiplication",
59-
"mult",
60-
"product",
61-
"prod",
62-
"incremental",
63-
"accumulator"
64-
]
2+
"name": "@stdlib/stats/incr/nanprod",
3+
"version": "0.0.0",
4+
"description": "Compute a product incrementally while ignoring `NaN` values.",
5+
"license": "Apache-2.0",
6+
"author": {
7+
"name": "The Stdlib Authors",
8+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9+
},
10+
"contributors": [
11+
{
12+
"name": "The Stdlib Authors",
13+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14+
}
15+
],
16+
"main": "./lib",
17+
"directories": {
18+
"benchmark": "./benchmark",
19+
"doc": "./docs",
20+
"example": "./examples",
21+
"lib": "./lib",
22+
"test": "./test"
23+
},
24+
"types": "./docs/types",
25+
"scripts": {},
26+
"homepage": "https://github.com/stdlib-js/stdlib.git",
27+
"repository": {
28+
"type": "git",
29+
"url": "git://github.com/stdlib-js/stdlib.git"
30+
},
31+
"bugs": {
32+
"url": "https://github.com/stdlib-js/stdlib/issues"
33+
},
34+
"dependencies": {},
35+
"devDependencies": {},
36+
"engines": {
37+
"node": ">=0.10.0",
38+
"npm": ">2.7.0"
39+
},
40+
"os": [
41+
"aix",
42+
"darwin",
43+
"freebsd",
44+
"linux",
45+
"macos",
46+
"openbsd",
47+
"sunos",
48+
"win32",
49+
"windows"
50+
],
51+
"keywords": [
52+
"stdlib",
53+
"stdmath",
54+
"statistics",
55+
"stats",
56+
"mathematics",
57+
"math",
58+
"multiplication",
59+
"mult",
60+
"product",
61+
"prod",
62+
"incremental",
63+
"accumulator"
64+
]
6565
}

lib/node_modules/@stdlib/stats/incr/nanprod/test/test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var PINF = require( '@stdlib/constants/float64/pinf' );
2525
var NINF = require( '@stdlib/constants/float64/ninf' );
2626
var EPSILON = require( '@stdlib/constants/float64/eps' );
2727
var normal = require( '@stdlib/random/base/normal' );
28-
var randu = require( '@stdlib/random/base/randu' );
2928
var ldexp = require( '@stdlib/math/base/special/ldexp' );
3029
var abs = require( '@stdlib/math/base/special/abs' );
3130
var isnan = require( '@stdlib/assert/is-nan' );
@@ -75,7 +74,7 @@ tape( 'the accumulator function incrementally computes a product', function test
7574
prod = 1.0;
7675
for ( i = 0; i < N; i++ ) {
7776
d = data[ i ];
78-
if( !isnan( d ) ){
77+
if ( !isnan( d ) ) {
7978
prod *= d;
8079
}
8180
expected[ i ] = prod;
@@ -115,7 +114,7 @@ tape( 'the accumulator function incrementally computes a product (special series
115114
} else {
116115
acc( 1.0/x );
117116
}
118-
if( i % 10 == 0 ){
117+
if ( i % 10 === 0 ){
119118
acc( NaN );
120119
}
121120
}
@@ -316,7 +315,7 @@ tape( 'if provided values of normal magnitude (i.e., far away from the extremes)
316315
prod = 1.0;
317316
for ( i = 0; i < 1000; i++ ) {
318317
r = randn();
319-
if( isnan( r ) ){
318+
if ( isnan( r ) ){
320319
continue;
321320
}
322321
acc( r );

0 commit comments

Comments
 (0)