Skip to content

Commit c7d443f

Browse files
committed
chore: 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: 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: na - task: lint_c_examples status: na - 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 ---
1 parent 7be4b47 commit c7d443f

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

lib/node_modules/@stdlib/stats/base/dists/laplace/median/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The function accepts the following arguments:
172172
- **b**: `[in] double` scale parameter.
173173

174174
```c
175-
double stdlib_base_dists_laplace_median( const double x, const double a, const double b );
175+
double stdlib_base_dists_laplace_median( const double mu, const double b );
176176
```
177177
178178
</section>
@@ -220,6 +220,12 @@ int main( void ) {
220220

221221
</section>
222222

223+
<!-- /.examples -->
224+
225+
</section>
226+
227+
<!-- /.c -->
228+
223229
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
224230

225231
<section class="references">

lib/node_modules/@stdlib/stats/base/dists/laplace/median/test/test.native.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ var NINF = require( '@stdlib/constants/float64/ninf' );
3030

3131
// VARIABLES //
3232

33-
var mean = tryRequire( resolve( __dirname, './../lib/native.js' ) );
33+
var median = tryRequire( resolve( __dirname, './../lib/native.js' ) );
3434
var opts = {
35-
'skip': ( mean instanceof Error )
35+
'skip': ( median instanceof Error )
3636
};
3737

3838

@@ -45,15 +45,15 @@ var data = require( './fixtures/julia/data.json' );
4545

4646
tape( 'main export is a function', opts, function test( t ) {
4747
t.ok( true, __filename );
48-
t.strictEqual( typeof mean, 'function', 'main export is a function' );
48+
t.strictEqual( typeof median, 'function', 'main export is a function' );
4949
t.end();
5050
});
5151

5252
tape( 'if provided `NaN` for any parameter, the function returns `NaN`', opts, function test( t ) {
53-
var v = mean( NaN, 1.0 );
53+
var v = median( NaN, 1.0 );
5454
t.equal( isnan( v ), true, 'returns NaN' );
5555

56-
v = mean( 1.0, NaN );
56+
v = median( 1.0, NaN );
5757
t.equal( isnan( v ), true, 'returns NaN' );
5858

5959
t.end();
@@ -62,25 +62,25 @@ tape( 'if provided `NaN` for any parameter, the function returns `NaN`', opts, f
6262
tape( 'if provided a nonpositive `b`, the function returns `NaN`', opts, function test( t ) {
6363
var y;
6464

65-
y = mean( 2.0, 0.0 );
65+
y = median( 2.0, 0.0 );
6666
t.equal( isnan( y ), true, 'returns NaN' );
6767

68-
y = mean( 2.0, -1.0 );
68+
y = median( 2.0, -1.0 );
6969
t.equal( isnan( y ), true, 'returns NaN' );
7070

71-
y = mean( 2.0, -1.0 );
71+
y = median( 2.0, -1.0 );
7272
t.equal( isnan( y ), true, 'returns NaN' );
7373

74-
y = mean( 1.0, NINF );
74+
y = median( 1.0, NINF );
7575
t.equal( isnan( y ), true, 'returns NaN' );
7676

77-
y = mean( PINF, NINF );
77+
y = median( PINF, NINF );
7878
t.equal( isnan( y ), true, 'returns NaN' );
7979

80-
y = mean( NINF, NINF );
80+
y = median( NINF, NINF );
8181
t.equal( isnan( y ), true, 'returns NaN' );
8282

83-
y = mean( NaN, NINF );
83+
y = median( NaN, NINF );
8484
t.equal( isnan( y ), true, 'returns NaN' );
8585

8686
t.end();
@@ -97,7 +97,7 @@ tape( 'the function returns the median of a Laplace distribution', opts, functio
9797
b = data.b;
9898
mu = data.mu;
9999
for ( i = 0; i < expected.length; i++ ) {
100-
y = mean( mu[i], b[i] );
100+
y = median( mu[i], b[i] );
101101
t.equal( y, expected[i], 'mu: '+mu[i]+', b: '+b[i]+', y: '+y+', expected: '+expected[i] );
102102
}
103103
t.end();

0 commit comments

Comments
 (0)