File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed 
lib/node_modules/@stdlib/stats/base/dists/planck/mgf Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ bench( pkg, function benchmark( b ) {
4141	t  =  new  Float64Array (  len  ) ; 
4242	lambda  =  new  Float64Array (  len  ) ; 
4343	for  (  i  =  0 ;  i  <  len ;  i ++  )  { 
44- 		t [  i  ]  =  uniform ( 0.0 ,  10.0 ) ; 
45- 		lambda [  i  ]  =  uniform ( 0.1 ,  10.0 ) ; 
44+ 		t [  i  ]  =  uniform (   0.0 ,  10.0   ) ; 
45+ 		lambda [  i  ]  =  uniform (   0.1 ,  10.0   ) ; 
4646	} 
4747
4848	b . tic ( ) ; 
@@ -62,16 +62,21 @@ bench( pkg, function benchmark( b ) {
6262
6363bench (  pkg + ':factory' ,  function  benchmark (  b  )  { 
6464	var  mymgf ; 
65+ 	var  len ; 
6566	var  t ; 
6667	var  y ; 
6768	var  i ; 
6869
69- 	t  =  uniform (  0.0 ,  10.0  ) ; 
70+ 	len  =  100 ; 
71+ 	t  =  new  Float64Array (  len  ) ; 
72+ 	for  (  i  =  0 ;  i  <  len ;  i ++  )  { 
73+ 		t [  i  ]  =  uniform (  0.0 ,  10.0  ) ; 
74+ 	} 
7075	mymgf  =  mgf . factory (  0.3  ) ; 
7176
7277	b . tic ( ) ; 
7378	for  (  i  =  0 ;  i  <  b . iterations ;  i ++  )  { 
74- 		y  =  mymgf (  t [  i  %  t . length  ]  ) ; 
79+ 		y  =  mymgf (  t [  i  %  len  ]  ) ; 
7580		if  (  isnan (  y  )  )  { 
7681			b . fail (  'should not return NaN'  ) ; 
7782		} 
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var opts = {
3939
4040// MAIN // 
4141
42- bench (  pkg + '::native' ,  opts ,  function  benchmark (  b  )  { 
42+ bench (  pkg   +   '::native' ,  opts ,  function  benchmark (  b  )  { 
4343	var  lambda ; 
4444	var  len ; 
4545	var  t ; 
Original file line number Diff line number Diff line change 4040      "dependencies" : [
4141        " @stdlib/math/base/napi/binary"  ,
4242        " @stdlib/math/base/assert/is-nan"  ,
43-         " @stdlib/math/base/special/expm1"  ,
44-         " @stdlib/math/base/special/pow" 
43+         " @stdlib/math/base/special/expm1" 
4544      ]
4645    },
4746    {
5756      "libpath" : [],
5857      "dependencies" : [
5958        " @stdlib/math/base/assert/is-nan"  ,
60-         " @stdlib/math/base/special/expm1"  ,
61-         " @stdlib/math/base/special/pow" 
59+         " @stdlib/math/base/special/expm1" 
6260      ]
6361    },
6462    {
7472      "libpath" : [],
7573      "dependencies" : [
7674        " @stdlib/math/base/assert/is-nan"  ,
77-         " @stdlib/math/base/special/expm1"  ,
78-         " @stdlib/math/base/special/pow" 
75+         " @stdlib/math/base/special/expm1" 
7976      ]
8077    }
8178  ]
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments