File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed 
lib/node_modules/@stdlib/stats/base/dists/rayleigh/quantile Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2222
2323var  bench  =  require (  '@stdlib/bench'  ) ; 
2424var  Float64Array  =  require (  '@stdlib/array/float64'  ) ; 
25- var  randu  =  require (  '@stdlib/random/base/randu '  ) ; 
25+ var  uniform  =  require (  '@stdlib/random/base/uniform '  ) ; 
2626var  isnan  =  require (  '@stdlib/math/base/assert/is-nan'  ) ; 
2727var  EPS  =  require (  '@stdlib/constants/float64/eps'  ) ; 
2828var  pkg  =  require (  './../package.json'  ) . name ; 
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242	p  =  new  Float64Array (  len  ) ; 
4343	sigma  =  new  Float64Array (  len  ) ; 
4444	for  (  i  =  0 ;  i  <  len ;  i ++  )  { 
45- 		p [  i  ]  =  randu ( ) ; 
46- 		sigma [  i  ]  =  (   randu ( )   *   20.0  )   +   EPS ; 
45+ 		p [  i  ]  =  uniform (   0.0 ,   1.0   ) ; 
46+ 		sigma [  i  ]  =  uniform (   EPS ,   20.0  ) ; 
4747	} 
4848
4949	b . tic ( ) ; 
Original file line number Diff line number Diff line change 2020#include  "stdlib/math/base/assert/is_nan.h" 
2121#include  "stdlib/math/base/special/log1p.h" 
2222#include  "stdlib/math/base/special/sqrt.h" 
23+ 
2324/** 
2425* Evaluates the quantile function for a Rayleigh distribution with scale parameter `sigma` at a probability `p`. 
2526* 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments