Skip to content

Commit d550c14

Browse files
committed
feat: updated benchmark with eps
1 parent feb6fe1 commit d550c14

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/t/kurtosis/benchmark/c/benchmark.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/stats/base/dists/t/kurtosis.h"
20+
#include "stdlib/constants/float64/eps.h"
2021
#include <stdlib.h>
2122
#include <stdio.h>
2223
#include <math.h>
@@ -99,7 +100,7 @@ static double benchmark( void ) {
99100
int i;
100101

101102
for ( i = 0; i < 100; i++ ) {
102-
v[ i ] = random_uniform( 0.0, 20.0 ) + 2.0;
103+
v[ i ] = random_uniform( 0.0, 20.0 ) + 2.0 + STDLIB_CONSTANT_FLOAT64_EPS;
103104
}
104105

105106
t = tic();

lib/node_modules/@stdlib/stats/base/dists/t/kurtosis/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"libpath": [],
5757
"dependencies": [
5858
"@stdlib/math/base/assert/is-nan",
59-
"@stdlib/constants/float64/pinf"
59+
"@stdlib/constants/float64/pinf",
60+
"@stdlib/constants/float64/eps"
6061
]
6162
},
6263
{

0 commit comments

Comments
 (0)