Skip to content

Commit 39b2b27

Browse files
committed
Auto-generated commit
1 parent 82040e7 commit 39b2b27

File tree

64 files changed

+123
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+123
-117
lines changed

CHANGELOG.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-12-22)
7+
## Unreleased (2024-12-23)
88

99
<section class="packages">
1010

@@ -2744,7 +2744,7 @@ This release closes the following issue:
27442744

27452745
##### Features
27462746

2747-
- [`db1d12e`](https://github.com/stdlib-js/stdlib/commit/db1d12e38135bf8e67b497e80e9f352e1bcb25cb) - add C implementation for `stats/base/dist/weibull/mean` [(#4052)](https://github.com/stdlib-js/stdlib/pull/4052)
2747+
- [`db1d12e`](https://github.com/stdlib-js/stdlib/commit/db1d12e38135bf8e67b497e80e9f352e1bcb25cb) - add C implementation for `stats/base/dists/weibull/mean` [(#4052)](https://github.com/stdlib-js/stdlib/pull/4052)
27482748

27492749
</section>
27502750

@@ -2912,6 +2912,14 @@ A total of 17 people contributed to this release. Thank you to the following con
29122912

29132913
<details>
29142914

2915+
- [`603c766`](https://github.com/stdlib-js/stdlib/commit/603c76686fc8de480628e5b96efd9733b1f059b5) - **test:** only conditionally run tests _(by Philipp Burckhardt)_
2916+
- [`2712c2c`](https://github.com/stdlib-js/stdlib/commit/2712c2c49e251f7dc53e1a984b233c37a2fdb871) - **bench:** only conditionally run benchmarks _(by Philipp Burckhardt)_
2917+
- [`318f280`](https://github.com/stdlib-js/stdlib/commit/318f28057bf00d910a656c4f315b8de17f89d3b5) - **chore:** minor clean-up _(by Philipp Burckhardt)_
2918+
- [`c13062e`](https://github.com/stdlib-js/stdlib/commit/c13062e5b90cbe28ec62f0b690211bd14b626cf3) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2919+
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2920+
- [`a72a67a`](https://github.com/stdlib-js/stdlib/commit/a72a67a667bcf694e5f8f2bc3c8e62714e5832bc) - **chore:** minor clean-up _(by Philipp Burckhardt)_
2921+
- [`6a0d6b8`](https://github.com/stdlib-js/stdlib/commit/6a0d6b861f8e2079a501ca4e46a9175440eedb46) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2922+
- [`8553770`](https://github.com/stdlib-js/stdlib/commit/85537708442675d6bc1bf5dad5aaf252cecb82ac) - **chore:** minor clean-up _(by Philipp Burckhardt)_
29152923
- [`a0eb37f`](https://github.com/stdlib-js/stdlib/commit/a0eb37f8a76369a7b0f6bec74affdf65d8a33b0c) - **refactor:** update `stats/base/dnanminabs` native addon from C++ to C [(#4126)](https://github.com/stdlib-js/stdlib/pull/4126) _(by Vivek maurya)_
29162924
- [`398c071`](https://github.com/stdlib-js/stdlib/commit/398c071feccc410c317eba90ee89ecc04bec63c9) - **refactor:** update `stats/base/dnanmin` native addon from C++ to C [(#4125)](https://github.com/stdlib-js/stdlib/pull/4125) _(by Vivek maurya)_
29172925
- [`5b71452`](https://github.com/stdlib-js/stdlib/commit/5b71452bd40811341a2e4eaab018c3cc17c5feac) - **docs:** update related packages sections [(#4135)](https://github.com/stdlib-js/stdlib/pull/4135) _(by stdlib-bot, Athan Reines)_
@@ -2958,7 +2966,7 @@ A total of 17 people contributed to this release. Thank you to the following con
29582966
- [`9d270ad`](https://github.com/stdlib-js/stdlib/commit/9d270ad8299ceb0723b1b805e738fbe19faa6520) - **feat:** add C implementation for `stats/base/dists/rayleigh/mean` [(#4026)](https://github.com/stdlib-js/stdlib/pull/4026) _(by Prashant Kumar Yadav, Philipp Burckhardt)_
29592967
- [`7d9b63d`](https://github.com/stdlib-js/stdlib/commit/7d9b63ddd452bf4cc171bdd21cf666274d3eeb56) - **feat:** add C implementation for `stats/base/dists/exponential/mode` [(#4047)](https://github.com/stdlib-js/stdlib/pull/4047) _(by Prashant Kumar Yadav, Philipp Burckhardt)_
29602968
- [`7eb69d4`](https://github.com/stdlib-js/stdlib/commit/7eb69d4e7b7b998a98772fa118c16707a0160e92) - **feat:** add C implementation for `stats/base/dists/logistic/median` [(#4031)](https://github.com/stdlib-js/stdlib/pull/4031) _(by Prashant Kumar Yadav)_
2961-
- [`db1d12e`](https://github.com/stdlib-js/stdlib/commit/db1d12e38135bf8e67b497e80e9f352e1bcb25cb) - **feat:** add C implementation for `stats/base/dist/weibull/mean` [(#4052)](https://github.com/stdlib-js/stdlib/pull/4052) _(by Divyansh Seth, Philipp Burckhardt)_
2969+
- [`db1d12e`](https://github.com/stdlib-js/stdlib/commit/db1d12e38135bf8e67b497e80e9f352e1bcb25cb) - **feat:** add C implementation for `stats/base/dists/weibull/mean` [(#4052)](https://github.com/stdlib-js/stdlib/pull/4052) _(by Divyansh Seth, Philipp Burckhardt)_
29622970
- [`974b609`](https://github.com/stdlib-js/stdlib/commit/974b6094ed693a4a4fc732f9f0de082e2ab3cf89) - **feat:** add C implementation for `stats/base/dists/degenerate/variance` [(#4022)](https://github.com/stdlib-js/stdlib/pull/4022) _(by Aayush Khanna)_
29632971
- [`242b011`](https://github.com/stdlib-js/stdlib/commit/242b011a78ef3fce16befeca9e36629096e952c1) - **feat:** add C implementation for `stats/base/dists/f/mode` [(#4036)](https://github.com/stdlib-js/stdlib/pull/4036) _(by Vivek maurya, Philipp Burckhardt)_
29642972
- [`6c141f4`](https://github.com/stdlib-js/stdlib/commit/6c141f4c169d080eec1867c421aa6ffa88b9ebfd) - **feat:** add C implementation for `stats/base/dists/logistic/skewness` [(#4038)](https://github.com/stdlib-js/stdlib/pull/4038) _(by Prashant Kumar Yadav)_

base/dcumax/src/addon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3434
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
3535
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3636
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
37-
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
37+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3838
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
3939
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
4040
stdlib_strided_dcumax( N, X, strideX, Y, strideY );

base/dcumaxabs/src/addon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3434
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
3535
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3636
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
37-
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
37+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3838
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
3939
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
4040
stdlib_strided_dcumaxabs( N, X, strideX, Y, strideY );

base/dcumin/src/addon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3434
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
3535
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3636
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
37-
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
37+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3838
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
3939
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
4040
stdlib_strided_dcumin( N, X, strideX, Y, strideY );

base/dcuminabs/src/addon.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3434
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
3535
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
3636
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
37-
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
37+
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3838
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
3939
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
4040
stdlib_strided_dcuminabs( N, X, strideX, Y, strideY );

base/dists/arcsine/variance/benchmark/benchmark.native.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,26 @@
2020

2121
// MODULES //
2222

23+
var resolve = require( 'path' ).resolve;
2324
var bench = require( '@stdlib/bench' );
25+
var tryRequire = require( '@stdlib/utils/try-require' );
2426
var Float64Array = require( '@stdlib/array/float64' );
2527
var randu = require( '@stdlib/random/base/randu' );
2628
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2729
var pkg = require( './../package.json' ).name;
28-
var variance = require( './../lib' );
30+
31+
32+
// VARIABLES //
33+
34+
var variance = tryRequire( resolve( __dirname, './../lib/native.js' ) );
35+
var opts = {
36+
'skip': ( variance instanceof Error )
37+
};
2938

3039

3140
// MAIN //
3241

33-
bench( pkg+'::native', function benchmark( b ) {
42+
bench( pkg+'::native', opts, function benchmark( b ) {
3443
var min;
3544
var max;
3645
var len;

base/dists/bernoulli/mode/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var p;
121121
for ( i = 0; i < 10; i++ ) {
122122
p = randu();
123123
v = mode( p );
124-
console.log( 'p: %d, Mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
124+
console.log( 'p: %d, mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
125125
}
126126
```
127127

@@ -211,7 +211,7 @@ int main( void ) {
211211
for ( i = 0; i < 25; i++ ) {
212212
p = (double)rand() / ( (double)RAND_MAX + 1.0 );
213213
y = stdlib_base_dists_bernoulli_mode( p );
214-
printf( "x: %lf, M(X;p): %lf\n", p, y );
214+
printf( "x: %lf, mode(X;p): %lf\n", p, y );
215215
}
216216
}
217217
```

base/dists/bernoulli/mode/examples/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ var p;
2828
for ( i = 0; i < 10; i++ ) {
2929
p = randu();
3030
v = mode( p );
31-
console.log( 'p: %d, Mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
31+
console.log( 'p: %d, mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
3232
}

base/dists/betaprime/skewness/examples/c/example.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include <stdio.h>
2222

2323
static double random_uniform( const double min, const double max ) {
24-
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
25-
return min + ( v*(max-min) );
24+
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
25+
return min + ( v*(max-min) );
2626
}
2727

2828
int main( void ) {

base/dists/degenerate/mode/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var i;
100100
for ( i = 0; i < 10; i++ ) {
101101
mu = randu();
102102
v = mode( mu );
103-
console.log( 'µ: %d, Mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
103+
console.log( 'µ: %d, mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
104104
}
105105
```
106106

base/dists/degenerate/mode/examples/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ var i;
2828
for ( i = 0; i < 10; i++ ) {
2929
mu = randu();
3030
v = mode( mu );
31-
console.log( 'µ: %d, Mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
31+
console.log( 'µ: %d, mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
3232
}

base/dists/exponential/kurtosis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int main( void ) {
193193
for ( i = 0; i < 25; i++ ) {
194194
lambda = random_uniform( 0.0, 20.0 );
195195
y = stdlib_base_dists_exponential_kurtosis( lambda );
196-
printf( "λ: %lf, Kurt[X;λ]: %lf\n", lambda, y );
196+
printf( "λ: %lf, Kurt(X;λ): %lf\n", lambda, y );
197197
}
198198
}
199199
```

base/dists/exponential/kurtosis/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_kurtosis( lambda );
36-
printf( "λ: %lf, Kurt[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, Kurt(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/mean/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
for ( i = 0; i < 25; i++ ) {
196196
lambda = random_uniform( 0.0, 20.0 );
197197
y = stdlib_base_dists_exponential_mean( lambda );
198-
printf( "λ: %lf, E[X;λ]: %lf\n", lambda, y );
198+
printf( "λ: %lf, E(X;λ): %lf\n", lambda, y );
199199
}
200200
}
201201
```

base/dists/exponential/mean/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_mean( lambda );
36-
printf( "λ: %lf, E[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, E(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/median/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
for ( i = 0; i < 25; i++ ) {
196196
lambda = random_uniform( 0.0, 20.0 );
197197
y = stdlib_base_dists_exponential_median( lambda );
198-
printf( "λ: %lf, Median[X;λ]: %lf\n", lambda, y );
198+
printf( "λ: %lf, Median(X;λ): %lf\n", lambda, y );
199199
}
200200
}
201201
```

base/dists/exponential/median/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_median( lambda );
36-
printf( "λ: %lf, Median[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, Median(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/median/test/test.native.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
2525
var tryRequire = require( '@stdlib/utils/try-require' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
27-
var abs = require( '@stdlib/math/base/special/abs' );
2827
var NINF = require( '@stdlib/constants/float64/ninf' );
29-
var EPS = require( '@stdlib/constants/float64/eps' );
3028

3129

3230
// VARIABLES //
@@ -71,22 +69,14 @@ tape( 'if provided a rate parameter `lambda` that is not a nonnegative number, t
7169
tape( 'the function returns the median of an exponential distribution', opts, function test( t ) {
7270
var expected;
7371
var lambda;
74-
var delta;
75-
var tol;
7672
var i;
7773
var y;
7874

7975
expected = data.expected;
8076
lambda = data.lambda;
8177
for ( i = 0; i < expected.length; i++ ) {
8278
y = median( lambda[i] );
83-
if ( y === expected[ i ] ) {
84-
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
85-
} else {
86-
delta = abs( y - expected[ i ] );
87-
tol = 2.0 * EPS * abs( expected[ i ] );
88-
t.ok( delta <= tol, 'within tolerance. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
89-
}
79+
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
9080
}
9181
t.end();
9282
});

base/dists/exponential/mode/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int main( void ) {
193193
for ( i = 0; i < 25; i++ ) {
194194
lambda = random_uniform( 0.0, 20.0 );
195195
y = stdlib_base_dists_exponential_mode( lambda );
196-
printf( "λ: %lf, Mode[X;λ]: %lf\n", lambda, y );
196+
printf( "λ: %lf, mode(X;λ): %lf\n", lambda, y );
197197
}
198198
}
199199
```

base/dists/exponential/mode/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_mode( lambda );
36-
printf( "λ: %lf, Mode[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, mode(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/skewness/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int main( void ) {
193193
for ( i = 0; i < 25; i++ ) {
194194
lambda = random_uniform( 0.0, 20.0 );
195195
y = stdlib_base_dists_exponential_skewness( lambda );
196-
printf( "λ: %lf, Skewness[X;λ]: %lf\n", lambda, y );
196+
printf( "λ: %lf, skew(X;λ): %lf\n", lambda, y );
197197
}
198198
}
199199
```

base/dists/exponential/skewness/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_skewness( lambda );
36-
printf( "λ: %lf, Skewness[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, skew(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/stdev/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
for ( i = 0; i < 25; i++ ) {
196196
lambda = random_uniform( 0.0, 20.0 );
197197
y = stdlib_base_dists_exponential_stdev( lambda );
198-
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
198+
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
199199
}
200200
}
201201
```

base/dists/exponential/stdev/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ int main( void ) {
3333
for ( i = 0; i < 25; i++ ) {
3434
lambda = random_uniform( 0.0, 20.0 );
3535
y = stdlib_base_dists_exponential_stdev( lambda );
36-
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
36+
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
3737
}
3838
}

base/dists/exponential/stdev/test/test.native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ tape( 'the function returns the standard deviation of an exponential distributio
8484
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
8585
} else {
8686
delta = abs( y - expected[ i ] );
87-
tol = 2.0 * EPS * abs( expected[ i ] );
87+
tol = 1.0 * EPS * abs( expected[ i ] );
8888
t.ok( delta <= tol, 'within tolerance. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
8989
}
9090
}

base/dists/f/kurtosis/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ for ( i = 0; i < 10; i++ ) {
139139
d1 = ( randu()*10.0 ) + EPS;
140140
d2 = ( randu()*20.0 ) + EPS;
141141
v = kurtosis( d1, d2 );
142-
console.log( 'd1: %d, d2: %d, skew(X;d1,d2): %d', d1.toFixed( 4 ), d2.toFixed( 4 ), v.toFixed( 4 ) );
142+
console.log( 'd1: %d, d2: %d, Kurt(X;d1,d2): %d', d1.toFixed( 4 ), d2.toFixed( 4 ), v.toFixed( 4 ) );
143143
}
144144
```
145145

base/dists/gumbel/mean/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ for ( i = 0; i < 10; i++ ) {
125125
mu = ( randu()*10.0 ) - 5.0;
126126
beta = randu() * 20.0;
127127
y = mean( mu, beta );
128-
console.log( 'µ: %d, β: %d, h(X;µ,β): %d', mu.toFixed( 4 ), beta.toFixed( 4 ), y.toFixed( 4 ) );
128+
console.log( 'µ: %d, β: %d, E(X;µ,β): %d', mu.toFixed( 4 ), beta.toFixed( 4 ), y.toFixed( 4 ) );
129129
}
130130
```
131131

base/dists/kumaraswamy/median/src/main.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
* // returns 1.0
3333
*/
3434
double stdlib_base_dists_kumaraswamy_median( const double a, const double b ) {
35-
if (
36-
stdlib_base_is_nan( a ) ||
37-
stdlib_base_is_nan( b ) ||
38-
a <= 0.0 || b <= 0.0
39-
) {
40-
return 0.0/0.0; // NaN
41-
}
42-
return 1.0 - stdlib_base_pow( 0.5, 1.0 / b );
35+
if (
36+
stdlib_base_is_nan( a ) ||
37+
stdlib_base_is_nan( b ) ||
38+
a <= 0.0 || b <= 0.0
39+
) {
40+
return 0.0/0.0; // NaN
41+
}
42+
return 1.0 - stdlib_base_pow( 0.5, 1.0 / b );
4343
}

base/dists/laplace/entropy/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tape( 'if provided a nonpositive `b`, the function returns `NaN`', function test
7777
t.end();
7878
});
7979

80-
tape( 'the function returns the excess entropy of a Laplace distribution', function test( t ) {
80+
tape( 'the function returns the differential entropy of a Laplace distribution', function test( t ) {
8181
var expected;
8282
var delta;
8383
var tol;

base/dists/laplace/entropy/test/test.native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ tape( 'if provided a nonpositive `b`, the function returns `NaN`', opts, functio
8686
t.end();
8787
});
8888

89-
tape( 'the function returns the excess entropy of a Laplace distribution', opts, function test( t ) {
89+
tape( 'the function returns the differential entropy of a Laplace distribution', opts, function test( t ) {
9090
var expected;
9191
var delta;
9292
var tol;

base/dists/logistic/mean/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int main( void ) {
213213
mu = random_uniform( 0.0, 10.0 ) - 5.0;
214214
s = random_uniform( 0.0, 20.0 );
215215
y = stdlib_base_dists_logistic_mean( mu, s );
216-
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
216+
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
217217
}
218218
}
219219
```

base/dists/logistic/mean/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ int main( void ) {
3535
mu = random_uniform( 0.0, 10.0 ) - 5.0;
3636
s = random_uniform( 0.0, 20.0 );
3737
y = stdlib_base_dists_logistic_mean( mu, s );
38-
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
38+
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
3939
}
4040
}

base/dists/logistic/mode/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ int main( void ) {
201201
mu = random_uniform( 0.0, 10.0 ) - 5.0;
202202
s = random_uniform( 0.0, 20.0 );
203203
y = stdlib_base_dists_logistic_mode( mu, s );
204-
printf( "µ: %lf, s: %lf, Mode(X;µ,s): %lf\n", mu, s, y );
204+
printf( "µ: %lf, s: %lf, mode(X;µ,s): %lf\n", mu, s, y );
205205
}
206206
}
207207
```

base/dists/logistic/mode/examples/c/example.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ int main( void ) {
3535
mu = random_uniform( 0.0, 10.0 ) - 5.0;
3636
s = random_uniform( 0.0, 20.0 );
3737
y = stdlib_base_dists_logistic_mode( mu, s );
38-
printf( "µ: %lf, s: %lf, Mode(X;µ,s): %lf\n", mu, s, y );
38+
printf( "µ: %lf, s: %lf, mode(X;µ,s): %lf\n", mu, s, y );
3939
}
4040
}

0 commit comments

Comments
 (0)