Skip to content

Commit 225c7af

Browse files
fix: updated the reviewd changes
--- 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: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: passed - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: passed - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 7c86893 commit 225c7af

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ static double random_uniform( const double min, const double max ) {
214214
}
215215
216216
int main( void ) {
217-
double x;
218217
double gamma;
219218
double x0;
219+
double x;
220220
double y;
221221
int i;
222222

lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ bench( pkg, function benchmark( b ) {
4040
var i;
4141

4242
len = 100;
43-
x = new Float64Array( len );
4443
gamma = new Float64Array( len );
4544
x0 = new Float64Array( len );
45+
x = new Float64Array( len );
4646
for ( i = 0; i < len; i++ ) {
4747
x[ i ] = ( randu()*100.0 ) - 100;
4848
x0[ i ] = ( randu()*100.0 ) - 50.0;

lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ static double random_uniform( const double min, const double max ) {
9494
*/
9595
static double benchmark( void ) {
9696
double elapsed;
97-
double x[ 100 ];
9897
double gamma[ 100 ];
9998
double x0[ 100 ];
99+
double x[ 100 ];
100100
double y;
101101
double t;
102102
int i;
103103

104104
for ( i = 0; i < 100; i++ ) {
105-
x[ i ] = random_uniform( 0.0, 100.0 ) - 100.0;
105+
x[ i ] = random_uniform( 0.0, 100.0 ) - 100.0;
106106
x0[ i ] = random_uniform( 0.0, 100.0 ) - 50.0;
107107
gamma[ i ] = random_uniform( 0.0, 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
108108
}

lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/examples/c/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ static double random_uniform( const double min, const double max ) {
2727
}
2828

2929
int main( void ) {
30-
double x;
3130
double gamma;
3231
double x0;
32+
double x;
3333
double y;
3434
int i;
3535

3636
for ( i = 0; i < 25; i++ ) {
37-
x = random_uniform( 0.0, 10.0 );
37+
x = random_uniform( 0.0, 10.0 );
3838
x0 = random_uniform( 0.0, 10.0 ) - 5.0;
3939
gamma = random_uniform( 0.0, 20.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
4040
y = stdlib_base_dists_cauchy_pdf( x, x0, gamma );

lib/node_modules/@stdlib/stats/base/dists/cauchy/pdf/include/stdlib/stats/base/dists/cauchy/pdf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Returns the differential pdf of a Cauchy distribution.
30+
* Returns the probability density function (PDF) for a Cauchy distribution with location parameter `x0` and scale parameter `gamma` at a value `x`.
3131
*/
3232
double stdlib_base_dists_cauchy_pdf( const double x, const double x0, const double gamma );
3333

0 commit comments

Comments
 (0)