@@ -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 '> 65/65 </ span >
28+ < span class ='fraction '> 66/66 </ 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 '> 65/65 </ span >
49+ < span class ='fraction '> 66/66 </ span >
5050 </ div >
5151
5252
@@ -128,7 +128,8 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
128128< a name ='L63 '> </ a > < a href ='#L63 '> 63</ a >
129129< a name ='L64 '> </ a > < a href ='#L64 '> 64</ a >
130130< a name ='L65 '> </ a > < a href ='#L65 '> 65</ a >
131- < a name ='L66 '> </ a > < a href ='#L66 '> 66</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
131+ < a name ='L66 '> </ a > < a href ='#L66 '> 66</ a >
132+ < a name ='L67 '> </ a > < a href ='#L67 '> 67</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
132133< span class ="cline-any cline-yes "> 2x</ span >
133134< span class ="cline-any cline-yes "> 2x</ span >
134135< span class ="cline-any cline-yes "> 2x</ span >
@@ -185,9 +186,10 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
185186< span class ="cline-any cline-yes "> 2x</ span >
186187< span class ="cline-any cline-yes "> 2x</ span >
187188< span class ="cline-any cline-yes "> 2x</ span >
188- < span class ="cline-any cline-yes "> 13x</ span >
189- < span class ="cline-any cline-yes "> 13x</ span >
190- < span class ="cline-any cline-yes "> 13x</ span >
189+ < span class ="cline-any cline-yes "> 2x</ span >
190+ < span class ="cline-any cline-yes "> 15x</ span >
191+ < span class ="cline-any cline-yes "> 15x</ span >
192+ < span class ="cline-any cline-yes "> 15x</ span >
191193< span class ="cline-any cline-yes "> 2x</ span >
192194< span class ="cline-any cline-yes "> 2x</ span >
193195< span class ="cline-any cline-yes "> 2x</ span >
@@ -224,14 +226,15 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
224226/**
225227* Computes a two-sample Z-test for a strided array.
226228*
227- * @param {PositiveInteger} N - number of indexed elements
228- * @param {string} alternative - alternative hypothesis
229+ * @param {PositiveInteger} NX - number of indexed elements in `x`
230+ * @param {PositiveInteger} NY - number of indexed elements in `y`
231+ * @param {(integer|string)} alternative - alternative hypothesis
229232* @param {number} alpha - significance level
230- * @param {number} mu - mean under the null hypothesis
233+ * @param {number} diff - difference in means under the null hypothesis
231234* @param {PositiveNumber} sigmax - known standard deviation of `x`
235+ * @param {PositiveNumber} sigmay - known standard deviation of `y`
232236* @param {Collection} x - input array
233237* @param {integer} strideX - stride length for `x`
234- * @param {PositiveNumber} sigmay - known standard deviation of `y`
235238* @param {Collection} y - input array
236239* @param {integer} strideY - stride length for `y`
237240* @param {Object} out - output results object
@@ -244,14 +247,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
244247* var y = [ 3.0, 3.0, 5.0, 7.0, 7.0 ];
245248*
246249* var results = new Results();
247- * var out = ztest2( x.length, 'two-sided', 0.05, 0.0, 1.0, x, 1, 2.0 , y, 1, results );
250+ * var out = ztest2( x.length, y.length, 'two-sided', 0.05, 0.0, 1.0, 2.0, x, 1 , y, 1, results );
248251* // returns {...}
249252*
250253* var bool = ( out === results );
251254* // returns true
252255*/
253- function ztest2( N, alternative, alpha, mu , sigmax, x, strideX, sigmay , y, strideY, out ) { // eslint-disable-line max-len, max-params
254- return ndarray( N, alternative, alpha, mu , sigmax, x, strideX, stride2offset( N , strideX ), sigmay, y, strideY, stride2offset( N , strideY ), out ); // eslint-disable-line max-len
256+ function ztest2( NX, NY, alternative, alpha, diff , sigmax, sigmay, x, strideX , y, strideY, out ) { // eslint-disable-line max-len, max-params
257+ return ndarray( NX, NY, alternative, alpha, diff , sigmax, sigmay, x, strideX, stride2offset( NX , strideX ), y, strideY, stride2offset( NY , strideY ), out ); // eslint-disable-line max-len
255258}
256259
257260
@@ -265,7 +268,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
265268 < div class ='footer quiet pad2 space-top1 center small '>
266269 Code coverage generated by
267270 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
268- at 2025-07-03T19:35:40.719Z
271+ at 2025-07-03T19:46:41.165Z
269272 </ div >
270273 < script src ="../../../../prettify.js "> </ script >
271274 < script >
0 commit comments