Skip to content

Commit f841c30

Browse files
committed
fix: update according to current conventions
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 908188e commit f841c30

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/pdf/benchmark/c/benchmark.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/stats/base/dists/kumaraswamy/pdf.h"
20+
#include "stdlib/constants/float64/eps.h"
2021
#include <stdlib.h>
2122
#include <stdio.h>
2223
#include <math.h>
@@ -101,9 +102,9 @@ static double benchmark( void ) {
101102
int i;
102103

103104
for ( i = 0; i < 100; i++ ) {
104-
x[ i ] = random_uniform( 0.0, 1.0 );
105-
a[ i ] = random_uniform( 0.1, 5.0 );
106-
b[ i ] = random_uniform( 0.1, 5.0 );
105+
x[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 1.0 );
106+
a[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
107+
b[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 5.0 );
107108
}
108109

109110
t = tic();

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/pdf/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"libpath": [],
5757
"dependencies": [
5858
"@stdlib/math/base/assert/is-nan",
59+
"@stdlib/constants/float64/eps",
5960
"@stdlib/math/base/special/pow"
6061
]
6162
},

0 commit comments

Comments
 (0)