Skip to content

Commit f6d69d3

Browse files
committed
space
1 parent e4b2e64 commit f6d69d3

File tree

2 files changed

+74
-66
lines changed

2 files changed

+74
-66
lines changed

lib/node_modules/@stdlib/stats/incr/nancv/lib/main.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
var incrcv = require( '@stdlib/stats/incr/cv' );
2424
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2525

26-
2726
// MAIN //
2827

2928
/**
@@ -51,6 +50,15 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
5150
*/
5251
function incrnancv() {
5352
var cv = incrcv();
53+
54+
/**
55+
* If provided a value, the accumulator function returns an updated accumulated value.
56+
* If not provided a value, the accumulator function returns the current accumulated value.
57+
*
58+
* @private
59+
* @param {number} [x] - new value
60+
* @returns {(number|null)} accumulated value or null
61+
*/
5462
function accumulator( x ) {
5563
if ( arguments.length === 0 ) {
5664
return cv();
@@ -59,10 +67,10 @@ function incrnancv() {
5967
return cv();
6068
}
6169
return cv( x );
62-
};
63-
return accumulator;
64-
}
70+
}
6571

72+
return accumulator;
73+
}
6674

6775
// EXPORTS //
6876

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
{
2-
"name": "@stdlib/stats/incr/nansum",
3-
"version": "0.0.0",
4-
"description": "Compute a sum 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",
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-
"summation",
59-
"sum",
60-
"total",
61-
"incremental",
62-
"accumulator"
63-
]
2+
"name": "@stdlib/stats/incr/nansum",
3+
"version": "0.0.0",
4+
"description": "Compute a sum 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",
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+
"summation",
59+
"sum",
60+
"total",
61+
"incremental",
62+
"accumulator"
63+
]
6464
}

0 commit comments

Comments
 (0)