File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed 
lib/node_modules/@stdlib/stats/base/dists/weibull/mode Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -193,28 +193,40 @@ double stdlib_base_dists_weibull_mode( const double k, const double λ );
193193``` 
194194
195195</section> 
196+ 
196197<!-- /.usage --> 
198+ 
197199<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> 
200+ 
198201<section class="notes"> 
202+ 
199203</section> 
204+ 
200205<!-- /.notes --> 
206+ 
201207<!-- C API usage examples. --> 
208+ 
202209<section class="examples"> 
210+ 
203211### Examples 
212+ 
204213```c 
205214#include "stdlib/stats/base/dists/weibull/mode.h" 
206215#include "stdlib/constants/float64/eps.h" 
207216#include <stdlib.h> 
208217#include <stdio.h> 
218+ 
209219static double random_uniform( const double min, const double max ) { 
210220    double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); 
211221    return min + ( v*(max-min) ); 
212222} 
223+ 
213224int main( void ) { 
214225    double lambda; 
215226    double k; 
216227    double y; 
217228    int i; 
229+ 
218230    for ( i = 0; i < 25; i++ ) { 
219231        k = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 ); 
220232        lambda = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 ); 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments