File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
lib/node_modules/@stdlib/stats/base/dists/gamma/mean Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1717*/
1818
1919#include "stdlib/stats/base/dists/gamma/mean.h"
20+ #include "stdlib/constants/float64/eps.h"
2021#include <stdlib.h>
2122#include <stdio.h>
2223#include <math.h>
@@ -100,8 +101,8 @@ static double benchmark( void ) {
100101 int i ;
101102
102103 for ( i = 0 ; i < 100 ; i ++ ) {
103- alpha [ i ] = random_uniform ( 0.0 , 20.0 );
104- beta [ i ] = random_uniform ( 0.0 , 20.0 );
104+ alpha [ i ] = random_uniform ( 0.0 , 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS ;
105+ beta [ i ] = random_uniform ( 0.0 , 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS ;
105106 }
106107
107108 t = tic ();
Original file line number Diff line number Diff line change 2222
2323var addon = require ( './../src/addon.node' ) ;
2424
25+
26+ // MAIN //
27+
2528/**
2629* Returns the expected value of a gamma distribution.
2730*
31+ * @private
2832* @param {PositiveNumber } alpha - shape parameter
2933* @param {PositiveNumber } beta - rate parameter
3034* @returns {PositiveNumber } expected value
Original file line number Diff line number Diff line change 5252 ],
5353 "libraries" : [],
5454 "libpath" : [],
55- "dependencies" : []
55+ "dependencies" : [
56+ " @stdlib/constants/float64/eps"
57+ ]
5658 },
5759 {
5860 "task" : " examples" ,
You can’t perform that action at this time.
0 commit comments