Skip to content

Commit 2965f8f

Browse files
committed
chore: minor clean-up
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - 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 ---
1 parent ed5c4cc commit 2965f8f

File tree

20 files changed

+72
-72
lines changed

20 files changed

+72
-72
lines changed

lib/node_modules/@stdlib/stats/base/dists/rayleigh/cdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ static double random_uniform( const double min, const double max ) {
215215
}
216216
217217
int main( void ) {
218-
double x;
219218
double sigma;
219+
double x;
220220
double y;
221221
int i;
222222

lib/node_modules/@stdlib/stats/base/dists/rayleigh/cdf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ static double random_uniform( const double min, const double max ) {
9393
* @return elapsed time in seconds
9494
*/
9595
static double benchmark( void ) {
96-
double elapsed;
97-
double x[ 100 ];
9896
double sigma[ 100 ];
97+
double x[ 100 ];
98+
double elapsed;
9999
double y;
100100
double t;
101101
int i;

lib/node_modules/@stdlib/stats/base/dists/rayleigh/cdf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ double stdlib_base_dists_rayleigh_cdf( const double x, const double sigma ) {
4444
if ( sigma == 0.0 ) {
4545
return ( x < 0.0 ) ? 0.0 : 1.0;
4646
}
47-
if ( x < 0.0) {
47+
if ( x < 0.0 ) {
4848
return 0.0;
4949
}
5050
s2 = stdlib_base_pow( sigma, 2.0 );

lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf/test/test.logpdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ tape( 'the function evaluates the logpdf for `x` given small scale parameter `si
114114
sigma = smallScale.sigma;
115115
for ( i = 0; i < x.length; i++ ) {
116116
y = logpdf( x[i], sigma[i] );
117-
if ( expected[i] !== null) {
117+
if ( expected[i] !== null ) {
118118
if ( y === expected[i] ) {
119119
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
120120
} else {

lib/node_modules/@stdlib/stats/base/dists/rayleigh/pdf/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ tape( 'the function evaluates the pdf for `x` given small scale parameter `sigma
123123
sigma = smallScale.sigma;
124124
for ( i = 0; i < x.length; i++ ) {
125125
y = pdf( x[i], sigma[i] );
126-
if ( expected[i] !== null) {
126+
if ( expected[i] !== null ) {
127127
if ( y === expected[i] ) {
128128
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
129129
} else {

lib/node_modules/@stdlib/stats/base/dists/rayleigh/pdf/test/test.pdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ tape( 'the function evaluates the pdf for `x` given small scale parameter `sigma
114114
sigma = smallScale.sigma;
115115
for ( i = 0; i < x.length; i++ ) {
116116
y = pdf( x[i], sigma[i] );
117-
if ( expected[i] !== null) {
117+
if ( expected[i] !== null ) {
118118
if ( y === expected[i] ) {
119119
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
120120
} else {

lib/node_modules/@stdlib/stats/base/dists/rayleigh/quantile/test/test.quantile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ tape( 'the function evaluates the quantile function at `p` given small scale par
106106
sigma = smallScale.sigma;
107107
for ( i = 0; i < p.length; i++ ) {
108108
y = quantile( p[i], sigma[i] );
109-
if ( expected[i] !== null) {
109+
if ( expected[i] !== null ) {
110110
if ( y === expected[i] ) {
111111
t.equal( y, expected[i], 'p: '+p[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
112112
} else {

lib/node_modules/@stdlib/stats/base/dists/signrank/quantile/test/test.quantile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tape( 'the function evaluates the quantile function at `p` given `n` observation
9393
n = data.n;
9494
for ( i = 0; i < p.length; i++ ) {
9595
y = quantile( p[i], n[i] );
96-
if ( expected[i] !== null) {
96+
if ( expected[i] !== null ) {
9797
if ( y === expected[i] ) {
9898
t.equal( y, expected[i], 'p: '+p[i]+', n: '+n[i]+', y: '+y+', expected: '+expected[i] );
9999
} else {

lib/node_modules/@stdlib/stats/kstest/lib/marsaglia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function pKolmogorov( d, n ) {
155155
var z;
156156

157157
z = new Float64Array( m * m );
158-
for ( i = 0; i < m; i++) {
158+
for ( i = 0; i < m; i++ ) {
159159
for ( j = 0; j < m; j++ ) {
160160
s = 0;
161161
for ( k = 0; k < m; k++ ) {

lib/node_modules/@stdlib/utils/any-in-by/test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tape( 'the function throws an error if not provided an object', function test( t
5050
/.*/,
5151
new Date()
5252
];
53-
for (i =0; i < values.length; i++) {
53+
for ( i =0; i < values.length; i++ ) {
5454
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
5555
}
5656
t.end();
@@ -79,7 +79,7 @@ tape( 'the function throws an error if not provided a predicate function', funct
7979
/.*/,
8080
new Date()
8181
];
82-
for (i =0; i < values.length; i++) {
82+
for ( i =0; i < values.length; i++ ) {
8383
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
8484
}
8585
t.end();
@@ -108,7 +108,7 @@ tape( 'the function throws an error if predicate is not a function', function te
108108
/.*/,
109109
new Date()
110110
];
111-
for (i =0; i < values.length; i++) {
111+
for ( i =0; i < values.length; i++ ) {
112112
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
113113
}
114114
t.end();

0 commit comments

Comments
 (0)