Skip to content

Commit 4974a99

Browse files
authored
Update main.js
Signed-off-by: Harsh <[email protected]>
1 parent 6a4972c commit 4974a99

File tree

1 file changed

+22
-22
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanrss/lib

1 file changed

+22
-22
lines changed

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
// MAIN //
2828

2929
/**
30-
* Returns an accumulator function which incrementally computes the residual sum of squares, ignoring `NaN` values.
31-
*
32-
* @returns {Function} accumulator function
33-
*
34-
* @example
35-
* var accumulator = incrnanrss();
36-
*
37-
* var r = accumulator();
38-
* // returns null
39-
*
40-
* r = accumulator( 2.0, 3.0 );
41-
* // returns 1.0
42-
*
43-
* r = accumulator( 1.0, NaN );
44-
* // returns 1.0
45-
*
46-
* r = accumulator( -5.0, 2.0 );
47-
* // returns 50.0
48-
*
49-
* r = accumulator();
50-
* // returns 50.0
51-
*/
30+
* Returns an accumulator function which incrementally computes the residual sum of squares, ignoring `NaN` values.
31+
*
32+
* @returns {Function} accumulator function
33+
*
34+
* @example
35+
* var accumulator = incrnanrss();
36+
*
37+
* var r = accumulator();
38+
* // returns null
39+
*
40+
* r = accumulator( 2.0, 3.0 );
41+
* // returns 1.0
42+
*
43+
* r = accumulator( 1.0, NaN );
44+
* // returns 1.0
45+
*
46+
* r = accumulator( -5.0, 2.0 );
47+
* // returns 50.0
48+
*
49+
* r = accumulator();
50+
* // returns 50.0
51+
*/
5252
function incrnanrss() {
5353
var rss = incrrss();
5454
return accumulator;

0 commit comments

Comments
 (0)