@@ -25,7 +25,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">sta
2525 < div class ='fl pad1y space-right2 '>
2626 < span class ="strong "> 100% </ span >
2727 < span class ="quiet "> Statements</ span >
28- < span class ='fraction '> 44/44 </ span >
28+ < span class ='fraction '> 40/40 </ span >
2929 </ div >
3030
3131
@@ -46,7 +46,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">sta
4646 < div class ='fl pad1y space-right2 '>
4747 < span class ="strong "> 100% </ span >
4848 < span class ="quiet "> Lines</ span >
49- < span class ='fraction '> 44/44 </ span >
49+ < span class ='fraction '> 40/40 </ span >
5050 </ div >
5151
5252
@@ -103,15 +103,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">sta
103103< a name ='L38 '> </ a > < a href ='#L38 '> 38</ a >
104104< a name ='L39 '> </ a > < a href ='#L39 '> 39</ a >
105105< a name ='L40 '> </ a > < a href ='#L40 '> 40</ a >
106- < a name ='L41 '> </ a > < a href ='#L41 '> 41</ a >
107- < a name ='L42 '> </ a > < a href ='#L42 '> 42</ a >
108- < a name ='L43 '> </ a > < a href ='#L43 '> 43</ a >
109- < a name ='L44 '> </ a > < a href ='#L44 '> 44</ a >
110- < a name ='L45 '> </ a > < a href ='#L45 '> 45</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
111- < span class ="cline-any cline-yes "> 2x</ span >
112- < span class ="cline-any cline-yes "> 2x</ span >
113- < span class ="cline-any cline-yes "> 2x</ span >
114- < span class ="cline-any cline-yes "> 2x</ span >
106+ < a name ='L41 '> </ a > < a href ='#L41 '> 41</ a > </ td > < td class ="line-coverage quiet "> < span class ="cline-any cline-yes "> 2x</ span >
115107< span class ="cline-any cline-yes "> 2x</ span >
116108< span class ="cline-any cline-yes "> 2x</ span >
117109< span class ="cline-any cline-yes "> 2x</ span >
@@ -172,28 +164,24 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">sta
172164'use strict';
173165
174166/**
175- * Compute the arithmetic mean of a one-dimensional ndarray.
167+ * Compute the arithmetic mean of a one-dimensional ndarray using the improved Kahan–Babuška algorithm .
176168*
177169* @module @stdlib/stats/base/ndarray/meankbn
178170*
179171* @example
180172* var ndarray = require( '@stdlib/ndarray/base/ctor' );
181- * var mean = require( '@stdlib/stats/base/ndarray/meankbn' );
173+ * var Float64Array = require( '@stdlib/array/float64' );
174+ * var meankbn = require( '@stdlib/stats/base/ndarray/meankbn' );
182175*
183- * var xbuf = [ 1.0, 3.0, 4.0, 2.0 ];
184- * var x = new ndarray( 'generic ', xbuf , [ 4 ], [ 1 ], 0, 'row-major' );
176+ * var buf = new Float64Array( [ 1.0, 3.0, 4.0, 2.0 ] ) ;
177+ * var x = new ndarray( 'float64 ', buf , [ buf.length ], [ 1 ], 0, 'row-major' );
185178*
186- * var v = mean ( [ x ] );
179+ * var v = meankbn ( [ x ] );
187180* // returns 2.5
188181*/
189182
190- // MODULES //
191-
192183var main = require( './main.js' );
193184
194-
195- // EXPORTS //
196-
197185module.exports = main;
198186 </ pre > </ td > </ tr > </ table > </ pre >
199187
@@ -202,7 +190,7 @@ <h1><a href="../../../../../index.html">All files</a> / <a href="index.html">sta
202190 < div class ='footer quiet pad2 space-top1 center small '>
203191 Code coverage generated by
204192 < a href ="https://istanbul.js.org/ " target ="_blank " rel ="noopener noreferrer "> istanbul</ a >
205- at 2025-09-21T21:32:26.969Z
193+ at 2025-09-22T04:08:52.588Z
206194 </ div >
207195 < script src ="../../../../../prettify.js "> </ script >
208196 < script >
0 commit comments