Skip to content

Commit b7b1740

Browse files
committed
fix: add suggestions
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - 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: missing_dependencies - task: lint_c_benchmarks status: na - 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 afd1861 commit b7b1740

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/halfnormal/logcdf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main( void ) {
3737

3838
y = stdlib_base_dists_halfnormal_logcdf( x, sigma );
3939

40-
printf("x: %lf, σ: %lf, ln(F(x;σ)): %lf\n", x, sigma, y);
40+
printf( "x: %lf, σ: %lf, ln(F(x;σ)): %lf\n", x, sigma, y );
4141
}
4242
}
4343

lib/node_modules/@stdlib/stats/base/dists/halfnormal/logcdf/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ var opts = {
2828
var sigma = uniform( 10, 0.0, 20.0, opts );
2929
var x = uniform( 10, 0.0, 10.0, opts );
3030

31-
logEachMap('x: %lf, σ: %lf, ln(F(x;σ)): %lf', x, sigma, logcdf );
31+
logEachMap( 'x: %lf, σ: %lf, ln(F(x;σ)): %lf', x, sigma, logcdf );

lib/node_modules/@stdlib/stats/base/dists/halfnormal/logcdf/lib/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function factory( sigma ) {
6060
return logcdf;
6161

6262
/**
63-
* Evaluate the natural logarithm of the cumulative distribution function (CDF) or a half-normal distribution.
63+
* Evaluate the natural logarithm of the cumulative distribution function (CDF) for a half-normal distribution.
6464
*
6565
* @private
6666
* @param {number} x - input value

lib/node_modules/@stdlib/stats/base/dists/halfnormal/logcdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ double stdlib_base_dists_halfnormal_logcdf( const double x, const double sigma )
4343
if (
4444
stdlib_base_is_nan( x ) ||
4545
stdlib_base_is_nan( sigma ) ||
46-
sigma <=0.0
46+
sigma <= 0.0
4747
) {
4848
return 0.0 / 0.0; // NaN
4949
}

lib/node_modules/@stdlib/stats/base/dists/halfnormal/logcdf/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tape( 'if provided a negative `sigma`, the function always returns `NaN`', opts,
9393
t.end();
9494
});
9595

96-
tape( 'if provided `sigma <=0`, the function always returns `NaN`', function test( t ) {
96+
tape( 'if provided `sigma <=0`, the function always returns `NaN`', opts, function test( t ) {
9797
var y;
9898

9999
y = logcdf( 2.0, -1.0 );

0 commit comments

Comments
 (0)