File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/*
22* @license Apache-2.0
33*
4- * Copyright (c) 2025The Stdlib Authors.
4+ * Copyright (c) 2025 The Stdlib Authors.
55*
66* Licensed under the Apache License, Version 2.0 (the "License");
77* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ function incrnanmrss( W ) {
7676 * @returns {(number|null) } residual sum of squares or null
7777 */
7878 function accumulator ( x , y ) {
79- if ( arguments . length === 0 ) {
79+ if ( arguments . length === 0 ) {
8080 return mrss ( ) ;
8181 }
8282 if ( isnan ( x ) || isnan ( y ) ) {
8383 return mrss ( ) ;
8484 }
85- return mrss ( ( isnan ( x ) ? 0 : x ) , ( isnan ( y ) ? 0 : y ) ) ;
85+ return mrss ( ( ( isnan ( x ) ) ? 0 : x ) , ( ( isnan ( y ) ) ? 0 : y ) ) ;
8686 }
8787}
8888
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ tape( 'the accumulator function computes a moving residual sum of squares increm
8282 data = [
8383 [ 2.0 , 3.0 ] ,
8484 [ NaN , 3.0 ] ,
85- [ 2.0 , NaN ] ,
85+ [ 2.0 , NaN ] ,
8686 [ 3.0 , - 1.0 ] ,
8787 [ 2.0 , 5.0 ] ,
8888 [ 4.0 , - 4.0 ] ,
You can’t perform that action at this time.
0 commit comments