@@ -25,7 +25,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
2525 < div class ='fl pad1y space-right2 '>
2626 < span class ="strong "> 100% </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 52/52 </ span >
28+ < span class ='fraction '> 51/51 </ span >
2929 </ div >
3030
3131
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
4646 < div class ='fl pad1y space-right2 '>
4747 < span class ="strong "> 100% </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 52/52 </ span >
49+ < span class ='fraction '> 51/51 </ span >
5050 </ div >
5151
5252
@@ -114,9 +114,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
114114< a name ='L49 '> </ a > < a href ='#L49 '> 49</ a >
115115< a name ='L50 '> </ a > < a href ='#L50 '> 50</ a >
116116< a name ='L51 '> </ a > < a href ='#L51 '> 51</ a >
117- < a name ='L52 '> </ a > < a href ='#L52 '> 52</ a >
118- < a name ='L53 '> </ a > < a href ='#L53 '> 53</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
119- < span class ="cline-any cline-yes "> 2x</ span >
117+ < a name ='L52 '> </ a > < a href ='#L52 '> 52</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
120118< span class ="cline-any cline-yes "> 2x</ span >
121119< span class ="cline-any cline-yes "> 2x</ span >
122120< span class ="cline-any cline-yes "> 2x</ span >
@@ -196,19 +194,18 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
196194// MAIN //
197195
198196/**
199- * Computes the variance of a strided array.
197+ * Computes the variance of a strided array using a one-pass textbook algorithm .
200198*
201199* @param {PositiveInteger} N - number of indexed elements
202- * @param {PositiveInteger } correction - degrees of freedom adjustment
200+ * @param {number } correction - degrees of freedom adjustment
203201* @param {NumericArray} x - input array
204202* @param {integer} strideX - stride length
205203* @returns {number} variance
206204*
207205* @example
208206* var x = [ 1.0, -2.0, 2.0 ];
209- * var N = x.length;
210207*
211- * var v = variancetk( N , 1, x, 1 );
208+ * var v = variancetk( x.length , 1, x, 1 );
212209* // returns ~4.3333
213210*/
214211function variancetk( N, correction, x, strideX ) {
@@ -226,7 +223,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
226223 < div class ='footer quiet pad2 space-top1 center small '>
227224 Code coverage generated by
228225 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
229- at 2025-06-25T08:38:50.965Z
226+ at 2025-06-25T08:51:52.311Z
230227 </ div >
231228 < script src ="../../../../prettify.js "> </ script >
232229 < script >
0 commit comments