Skip to content

Commit 4a2f078

Browse files
authored
refactor: avoid duplicated logic
Signed-off-by: Athan <[email protected]>
1 parent fd2dd0d commit 4a2f078

File tree

1 file changed

+0
-6
lines changed
  • lib/node_modules/@stdlib/stats/base/variancech/lib

1 file changed

+0
-6
lines changed

lib/node_modules/@stdlib/stats/base/variancech/lib/accessors.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ function variancech( N, correction, x, strideX, offsetX ) {
7171
get = x.accessors[ 0 ];
7272

7373
n = N - correction;
74-
if ( N <= 0 || n <= 0.0 ) {
75-
return NaN;
76-
}
77-
if ( N === 1 || strideX === 0 ) {
78-
return 0.0;
79-
}
8074
ix = offsetX;
8175

8276
// Use an estimate for the mean:

0 commit comments

Comments
 (0)