Skip to content

Commit cc32a34

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: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - 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 33a4af8 commit cc32a34

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

lib/node_modules/@stdlib/stats/base/dists/beta/mean/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The function accepts the following arguments:
185185
- **beta**: `[in] double` second shape parameter.
186186

187187
```c
188-
double stdlib_base_dists_beta_mean( const double a, const double b );
188+
double stdlib_base_dists_beta_mean( const double alpha, const double beta );
189189
```
190190
191191
</section>
@@ -222,7 +222,7 @@ int main( void ) {
222222
double beta;
223223
double y;
224224
int i;
225-
225+
226226
for ( i = 0; i < 25; i++ ) {
227227
alpha = random_uniform( 0.0, 10.0 );
228228
beta = random_uniform( 0.0, 10.0 );

lib/node_modules/@stdlib/stats/base/dists/beta/mean/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ static double benchmark( void ) {
101101
int i;
102102

103103
for ( i = 0; i < 100; i++ ) {
104-
alpha[ i ] = random_uniform( -20.0, 0.0 );
105-
beta[ i ] = random_uniform( alpha[ i ], alpha[ i ]+40.0 );
104+
alpha[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
105+
beta[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
106106
}
107107

108108
t = tic();

lib/node_modules/@stdlib/stats/base/dists/beta/mean/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ tape( 'the function returns the mean of a beta distribution', function test( t )
112112
t.equal( y, expected[i], 'alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
113113
} else {
114114
delta = abs( y - expected[ i ] );
115-
tol = 15.0 * EPS * abs( expected[ i ] );
115+
tol = 1.0 * EPS * abs( expected[ i ] );
116116
t.ok( delta <= tol, 'within tolerance. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
117117
}
118118
}

lib/node_modules/@stdlib/stats/base/dists/beta/mean/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ tape( 'the function returns the mean of a beta distribution', opts, function tes
121121
t.equal( y, expected[i], 'alpha: '+alpha[i]+', beta: '+beta[i]+', y: '+y+', expected: '+expected[i] );
122122
} else {
123123
delta = abs( y - expected[ i ] );
124-
tol = 15.0 * EPS * abs( expected[ i ] );
124+
tol = 1.0 * EPS * abs( expected[ i ] );
125125
t.ok( delta <= tol, 'within tolerance. alpha: '+alpha[i]+'. beta: '+beta[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
126126
}
127127
}

lib/node_modules/@stdlib/stats/base/dists/discrete-uniform/skewness/lib/native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
2828
/**
2929
* Returns the skewness of a discrete uniform distribution.
3030
*
31+
* @private
3132
* @param {integer} a - minimum support
3233
* @param {integer} b - maximum support
3334
* @returns {number} skewness

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var addon = require( './../src/addon.node' );
2828
/**
2929
* Evaluates the natural logarithm of the cumulative density function (CDF) for a uniform distribution with minimum support `a` and maximum support `b` at a value `x`.
3030
*
31+
* @private
3132
* @param {number} x - input value
3233
* @param {PositiveNumber} a - first shape parameter
3334
* @param {PositiveNumber} b - second shape parameter

0 commit comments

Comments
 (0)