Skip to content

Commit cac3846

Browse files
authored
fix: return correct value
Signed-off-by: Athan <[email protected]>
1 parent 6b8e327 commit cac3846

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/variancetk/lib

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function variancetk( N, correction, x, strideX, offsetX ) {
6060

6161
n = N - correction;
6262
if ( N === 1 || strideX === 0 ) {
63-
return get( xbuf, offsetX );
63+
return 0.0;
6464
}
6565
ix = offsetX;
6666
S2 = 0.0;

0 commit comments

Comments
 (0)