Skip to content

Commit 05b5326

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: na - 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: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: na - 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: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: passed ---
1 parent d199580 commit 05b5326

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

lib/node_modules/@stdlib/stats/base/dists/cosine/median/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121

2222
/**
23-
* Returns the mode for a raised cosine distribution with location `mu` and scale `s`.
23+
* Returns the median for a raised cosine distribution with location `mu` and scale `s`.
2424
*
2525
* @param mu location parameter
2626
* @param s scale parameter
@@ -31,7 +31,7 @@
3131
* // returns 0.0
3232
*/
3333
double stdlib_base_dists_cosine_median( const double mu, const double s ) {
34-
if (
34+
if (
3535
stdlib_base_is_nan( mu ) ||
3636
stdlib_base_is_nan( s ) ||
3737
s <= 0.0

lib/node_modules/@stdlib/stats/base/dists/cosine/skewness/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ int main( void ) {
3636
mu = random_uniform( -50.0, 50.0 );
3737
s = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 20.0 );
3838
y = stdlib_base_dists_cosine_skewness( mu, s );
39-
printf( "µ: %lf, s: %lf, SD(X;µ,s): %lf\n", mu, s, y );
39+
printf( "µ: %lf, s: %lf, skew(X;µ,s): %lf\n", mu, s, y );
4040
}
4141
}

lib/node_modules/@stdlib/stats/base/dists/cosine/skewness/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"libpath": [],
4040
"dependencies": [
4141
"@stdlib/math/base/napi/binary",
42-
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/constants/float64/eps"
42+
"@stdlib/math/base/assert/is-nan"
4443
]
4544
},
4645
{

lib/node_modules/@stdlib/stats/base/dists/cosine/stdev/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"dependencies": [
4141
"@stdlib/math/base/napi/binary",
4242
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/constants/float64/eps",
4443
"@stdlib/math/base/special/sqrt",
4544
"@stdlib/constants/float64/pi-squared"
4645
]

lib/node_modules/@stdlib/stats/base/dists/cosine/stdev/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "stdlib/constants/float64/pi_squared.h"
2323

2424
/**
25-
* Returns the mode for a raised cosine distribution with location `mu` and scale `s`.
25+
* Returns the standard deviation for a raised cosine distribution with location `mu` and scale `s`.
2626
*
2727
* @param mu location parameter
2828
* @param s scale parameter
@@ -33,7 +33,7 @@
3333
* // returns ~0.362
3434
*/
3535
double stdlib_base_dists_cosine_stdev( const double mu, const double s ) {
36-
if (
36+
if (
3737
stdlib_base_is_nan( mu ) ||
3838
stdlib_base_is_nan( s ) ||
3939
s <= 0.0

lib/node_modules/@stdlib/stats/base/dists/cosine/stdev/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ tape( 'the function returns the standard deviation of a raised cosine distributi
9696
t.equal( y, expected[i], 'mu:'+mu[i]+', s: '+s[i]+', y: '+y+', expected: '+expected[i] );
9797
} else {
9898
delta = abs( y - expected[ i ] );
99-
tol = 2.0 * EPS * abs( expected[ i ] );
99+
tol = 1.0 * EPS * abs( expected[ i ] );
100100
t.ok( delta <= tol, 'within tolerance. mu: '+mu[i]+'. s: '+s[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
101101
}
102102
}

lib/node_modules/@stdlib/stats/base/dists/cosine/stdev/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tape( 'the function returns the stdev of a raised cosine distribution', opts, fu
105105
t.equal( y, expected[i], 'mu:'+mu[i]+', s: '+s[i]+', y: '+y+', expected: '+expected[i] );
106106
} else {
107107
delta = abs( y - expected[ i ] );
108-
tol = 2.0 * EPS * abs( expected[ i ] );
108+
tol = 1.0 * EPS * abs( expected[ i ] );
109109
t.ok( delta <= tol, 'within tolerance. mu: '+mu[i]+'. s: '+s[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
110110
}
111111
}

0 commit comments

Comments
 (0)