Skip to content

Commit cbd3832

Browse files
committed
fix: add code suggestion
--- 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: missing_dependencies - 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 6cd00e4 commit cbd3832

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/tukey-lambda/mode/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/tukey-lambda/mode.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-
lambda[ i ] = random_uniform( 0.1, 10.0 );
103+
lambda[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
103104
}
104105

105106
t = tic();

lib/node_modules/@stdlib/stats/base/dists/tukey-lambda/mode/manifest.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
"libraries": [],
5555
"libpath": [],
5656
"dependencies": [
57-
"@stdlib/math/base/assert/is-nan"
57+
"@stdlib/math/base/assert/is-nan",
58+
"@stdlib/constants/float64/eps"
5859
]
5960
},
6061
{
@@ -69,7 +70,8 @@
6970
"libraries": [],
7071
"libpath": [],
7172
"dependencies": [
72-
"@stdlib/math/base/assert/is-nan"
73+
"@stdlib/math/base/assert/is-nan",
74+
"@stdlib/constants/float64/eps"
7375
]
7476
}
7577
]

lib/node_modules/@stdlib/stats/base/dists/tukey-lambda/mode/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Returns the mode for a tukey-lambda distribution with shape parameter `lambda`.
2424
*
2525
* @param lambda shape parameter
26-
* @return mode
26+
* @return mode
2727
*
2828
* @example
2929
* double y = stdlib_base_dists_tukey_lambda_mode( 1.0 );

0 commit comments

Comments
 (0)