Skip to content

Commit 810183b

Browse files
committed
bench: fixed the example in README and example.c
--- 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: passed - 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: 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 72be82d commit 810183b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/dists/lognormal/quantile/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ double y = stdlib_base_dists_lognormal_quantile( 0.84, -1.05, 15.66 );
184184

185185
The function accepts the following arguments:
186186

187-
- **p**: `[in] double` input value(Probability).
187+
- **p**: `[in] double` input value (probability).
188188
- **mu**: `[in] double` location parameter.
189189
- **sigma**: `[in] double` scale parameter.
190190

@@ -231,7 +231,7 @@ int main( void ) {
231231
for ( i = 0; i < 25; i++ ) {
232232
p = random_uniform( 0.0, 1.0 );
233233
mu = random_uniform( -5.0, 5.0 );
234-
sigma = random_uniform( 0.0, 20.0 );
234+
sigma = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
235235
y = stdlib_base_dists_lognormal_quantile( p, mu, sigma );
236236
printf( "p: %lf, μ: %lf, σ: %lf, Q(p;μ,σ): %lf\n", p, mu, sigma, y );
237237
}

lib/node_modules/@stdlib/stats/base/dists/lognormal/quantile/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main( void ) {
3636
for ( i = 0; i < 25; i++ ) {
3737
p = random_uniform( 0.0, 1.0 );
3838
mu = random_uniform( -5.0, 5.0 );
39-
sigma = random_uniform( 0.0, 20.0 );
39+
sigma = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
4040
y = stdlib_base_dists_lognormal_quantile( p, mu, sigma );
4141
printf( "p: %lf, μ: %lf, σ: %lf, Q(p;μ,σ): %lf\n", p, mu, sigma, y );
4242
}

0 commit comments

Comments
 (0)