File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed 
lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/kurtosis/benchmark Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -42,22 +42,22 @@ var opts = {
4242
4343bench (  pkg + '::native' ,  opts ,  function  benchmark (  b  )  { 
4444	var  len ; 
45- 	var  a ; 
46- 	var  x ; 
45+ 	var  shape1 ; 
46+ 	var  shape2 ; 
4747	var  y ; 
4848	var  i ; 
4949
5050	len  =  100 ; 
51- 	a  =  new  Float64Array (  len  ) ; 
52- 	x  =  new  Float64Array (  len  ) ; 
51+ 	shape1  =  new  Float64Array (  len  ) ; 
52+ 	shape2  =  new  Float64Array (  len  ) ; 
5353	for  (  i  =  0 ;  i  <  len ;  i ++  )  { 
54- 		a [  i  ]  =  (  randu ( )  *  100 .0  )  -   50.0 ; 
55- 		x [  i  ]  =  (  randu ( )  *  20 .0  )  +  EPS ; 
54+ 		shape1 [  i  ]  =  (  randu ( )  *  10 .0  )  +   EPS ; 
55+ 		shape2 [  i  ]  =  (  randu ( )  *  10 .0  )  +  EPS ; 
5656	} 
5757
5858	b . tic ( ) ; 
5959	for  (  i  =  0 ;  i  <  b . iterations ;  i ++  )  { 
60- 		y  =  kurtosis (  a [  i  %  len  ] ,  x [  i  %  len  ]  ) ; 
60+ 		y  =  kurtosis (  shape1 [  i  %  len  ] ,  shape2 [  i  %  len  ]  ) ; 
6161		if  (  isnan (  y  )  )  { 
6262			b . fail (  'should not return NaN'  ) ; 
6363		} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments