File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed 
lib/node_modules/@stdlib/stats/base/variancetk/lib Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,18 @@ var ndarray = require( './ndarray.js' );
2727// MAIN // 
2828
2929/** 
30- * Computes the variance of a strided array. 
30+ * Computes the variance of a strided array using a one-pass textbook algorithm . 
3131* 
3232* @param  {PositiveInteger } N - number of indexed elements 
33- * @param  {PositiveInteger } correction - degrees of freedom adjustment 
33+ * @param  {number } correction - degrees of freedom adjustment 
3434* @param  {NumericArray } x - input array 
3535* @param  {integer } strideX - stride length 
3636* @returns  {number } variance 
3737* 
3838* @example  
3939* var x = [ 1.0, -2.0, 2.0 ]; 
40- * var N = x.length; 
4140* 
42- * var v = variancetk( N , 1, x, 1 ); 
41+ * var v = variancetk( x.length , 1, x, 1 ); 
4342* // returns ~4.3333 
4443*/ 
4544function  variancetk (  N ,  correction ,  x ,  strideX  )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments