@@ -25,14 +25,14 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
25
25
< div class ='fl pad1y space-right2 '>
26
26
< span class ="strong "> 100% </ span >
27
27
< span class ="quiet "> Statements</ span >
28
- < span class ='fraction '> 61/61 </ span >
28
+ < span class ='fraction '> 53/53 </ span >
29
29
</ div >
30
30
31
31
32
32
< div class ='fl pad1y space-right2 '>
33
33
< span class ="strong "> 100% </ span >
34
34
< span class ="quiet "> Branches</ span >
35
- < span class ='fraction '> 3/3 </ span >
35
+ < span class ='fraction '> 2/2 </ span >
36
36
</ div >
37
37
38
38
@@ -46,7 +46,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
46
46
< div class ='fl pad1y space-right2 '>
47
47
< span class ="strong "> 100% </ span >
48
48
< span class ="quiet "> Lines</ span >
49
- < span class ='fraction '> 61/61 </ span >
49
+ < span class ='fraction '> 53/53 </ span >
50
50
</ div >
51
51
52
52
@@ -116,15 +116,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
116
116
< a name ='L51 '> </ a > < a href ='#L51 '> 51</ a >
117
117
< a name ='L52 '> </ a > < a href ='#L52 '> 52</ a >
118
118
< a name ='L53 '> </ a > < a href ='#L53 '> 53</ a >
119
- < a name ='L54 '> </ a > < a href ='#L54 '> 54</ a >
120
- < a name ='L55 '> </ a > < a href ='#L55 '> 55</ a >
121
- < a name ='L56 '> </ a > < a href ='#L56 '> 56</ a >
122
- < a name ='L57 '> </ a > < a href ='#L57 '> 57</ a >
123
- < a name ='L58 '> </ a > < a href ='#L58 '> 58</ a >
124
- < a name ='L59 '> </ a > < a href ='#L59 '> 59</ a >
125
- < a name ='L60 '> </ a > < a href ='#L60 '> 60</ a >
126
- < a name ='L61 '> </ a > < a href ='#L61 '> 61</ a >
127
- < a name ='L62 '> </ a > < a href ='#L62 '> 62</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
119
+ < a name ='L54 '> </ a > < a href ='#L54 '> 54</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
128
120
< span class ="cline-any cline-yes "> 2x</ span >
129
121
< span class ="cline-any cline-yes "> 2x</ span >
130
122
< span class ="cline-any cline-yes "> 2x</ span >
@@ -169,14 +161,6 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
169
161
< span class ="cline-any cline-yes "> 2x</ span >
170
162
< span class ="cline-any cline-yes "> 2x</ span >
171
163
< span class ="cline-any cline-yes "> 2x</ span >
172
- < span class ="cline-any cline-yes "> 2x</ span >
173
- < span class ="cline-any cline-yes "> 2x</ span >
174
- < span class ="cline-any cline-yes "> 2x</ span >
175
- < span class ="cline-any cline-yes "> 15x</ span >
176
- < span class ="cline-any cline-yes "> 15x</ span >
177
- < span class ="cline-any cline-yes "> 15x</ span >
178
- < span class ="cline-any cline-yes "> 1x</ span >
179
- < span class ="cline-any cline-yes "> 1x</ span >
180
164
< span class ="cline-any cline-yes "> 15x</ span >
181
165
< span class ="cline-any cline-yes "> 15x</ span >
182
166
< span class ="cline-any cline-yes "> 15x</ span >
@@ -207,8 +191,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
207
191
208
192
// MODULES //
209
193
210
- var Float32Array = require( '@stdlib/array/float32' );
211
- var addon = require( './sstdevwd.native.js' );
194
+ var addon = require( './../src/addon.node' );
212
195
213
196
214
197
// MAIN //
@@ -219,27 +202,20 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
219
202
* @param {PositiveInteger} N - number of indexed elements
220
203
* @param {number} correction - degrees of freedom adjustment
221
204
* @param {Float32Array} x - input array
222
- * @param {integer} stride - stride length
223
- * @param {NonNegativeInteger} offset - starting index
205
+ * @param {integer} strideX - stride length
206
+ * @param {NonNegativeInteger} offsetX - starting index
224
207
* @returns {number} standard deviation
225
208
*
226
209
* @example
227
210
* var Float32Array = require( '@stdlib/array/float32' );
228
- * var floor = require( '@stdlib/math/base/special/floor' );
229
211
*
230
212
* var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] );
231
- * var N = floor( x.length / 2 );
232
213
*
233
- * var v = sstdevwd( N , 1, x, 2, 1 );
214
+ * var v = sstdevwd( 4 , 1, x, 2, 1 );
234
215
* // returns 2.5
235
216
*/
236
- function sstdevwd( N, correction, x, stride, offset ) {
237
- var view;
238
- if ( stride < 0 ) {
239
- offset += (N-1) * stride;
240
- }
241
- view = new Float32Array( x.buffer, x.byteOffset+(x.BYTES_PER_ELEMENT*offset), x.length-offset ); // eslint-disable-line max-len
242
- return addon( N, correction, view, stride );
217
+ function sstdevwd( N, correction, x, strideX, offsetX ) {
218
+ return addon.ndarray( N, correction, x, strideX, offsetX );
243
219
}
244
220
245
221
@@ -253,7 +229,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">stats/
253
229
< div class ='footer quiet pad2 space-top1 center small '>
254
230
Code coverage generated by
255
231
< a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
256
- at 2025-07-14T18:20:13.979Z
232
+ at 2025-07-27T11:17:39.373Z
257
233
</ div >
258
234
< script src ="../../../../prettify.js "> </ script >
259
235
< script >
0 commit comments