Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Dec 23, 2024
1 parent 82040e7 commit 39b2b27
Show file tree
Hide file tree
Showing 64 changed files with 123 additions and 117 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

## Unreleased (2024-12-22)
## Unreleased (2024-12-23)

<section class="packages">

Expand Down Expand Up @@ -2744,7 +2744,7 @@ This release closes the following issue:

##### Features

- [`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)
- [`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)

</section>

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

<details>

- [`603c766`](https://github.com/stdlib-js/stdlib/commit/603c76686fc8de480628e5b96efd9733b1f059b5) - **test:** only conditionally run tests _(by Philipp Burckhardt)_
- [`2712c2c`](https://github.com/stdlib-js/stdlib/commit/2712c2c49e251f7dc53e1a984b233c37a2fdb871) - **bench:** only conditionally run benchmarks _(by Philipp Burckhardt)_
- [`318f280`](https://github.com/stdlib-js/stdlib/commit/318f28057bf00d910a656c4f315b8de17f89d3b5) - **chore:** minor clean-up _(by Philipp Burckhardt)_
- [`c13062e`](https://github.com/stdlib-js/stdlib/commit/c13062e5b90cbe28ec62f0b690211bd14b626cf3) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
- [`2ea848b`](https://github.com/stdlib-js/stdlib/commit/2ea848b62b686e1e9d861f7df25ece23a7d80798) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
- [`a72a67a`](https://github.com/stdlib-js/stdlib/commit/a72a67a667bcf694e5f8f2bc3c8e62714e5832bc) - **chore:** minor clean-up _(by Philipp Burckhardt)_
- [`6a0d6b8`](https://github.com/stdlib-js/stdlib/commit/6a0d6b861f8e2079a501ca4e46a9175440eedb46) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
- [`8553770`](https://github.com/stdlib-js/stdlib/commit/85537708442675d6bc1bf5dad5aaf252cecb82ac) - **chore:** minor clean-up _(by Philipp Burckhardt)_
- [`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)_
- [`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)_
- [`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)_
Expand Down Expand Up @@ -2958,7 +2966,7 @@ A total of 17 people contributed to this release. Thank you to the following con
- [`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)_
- [`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)_
- [`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)_
- [`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)_
- [`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)_
- [`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)_
- [`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)_
- [`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)_
Expand Down
2 changes: 1 addition & 1 deletion base/dcumax/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
stdlib_strided_dcumax( N, X, strideX, Y, strideY );
Expand Down
2 changes: 1 addition & 1 deletion base/dcumaxabs/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
stdlib_strided_dcumaxabs( N, X, strideX, Y, strideY );
Expand Down
2 changes: 1 addition & 1 deletion base/dcumin/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
stdlib_strided_dcumin( N, X, strideX, Y, strideY );
Expand Down
2 changes: 1 addition & 1 deletion base/dcuminabs/src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV( env, info, argv, argc, 5 );
STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
stdlib_strided_dcuminabs( N, X, strideX, Y, strideY );
Expand Down
13 changes: 11 additions & 2 deletions base/dists/arcsine/variance/benchmark/benchmark.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,26 @@

// MODULES //

var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var tryRequire = require( '@stdlib/utils/try-require' );
var Float64Array = require( '@stdlib/array/float64' );
var randu = require( '@stdlib/random/base/randu' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pkg = require( './../package.json' ).name;
var variance = require( './../lib' );


// VARIABLES //

var variance = tryRequire( resolve( __dirname, './../lib/native.js' ) );
var opts = {
'skip': ( variance instanceof Error )
};


// MAIN //

bench( pkg+'::native', function benchmark( b ) {
bench( pkg+'::native', opts, function benchmark( b ) {
var min;
var max;
var len;
Expand Down
4 changes: 2 additions & 2 deletions base/dists/bernoulli/mode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var p;
for ( i = 0; i < 10; i++ ) {
p = randu();
v = mode( p );
console.log( 'p: %d, Mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
console.log( 'p: %d, mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
}
```

Expand Down Expand Up @@ -211,7 +211,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
p = (double)rand() / ( (double)RAND_MAX + 1.0 );
y = stdlib_base_dists_bernoulli_mode( p );
printf( "x: %lf, M(X;p): %lf\n", p, y );
printf( "x: %lf, mode(X;p): %lf\n", p, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/bernoulli/mode/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ var p;
for ( i = 0; i < 10; i++ ) {
p = randu();
v = mode( p );
console.log( 'p: %d, Mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
console.log( 'p: %d, mode(X;p): %d', p.toFixed( 4 ), v.toFixed( 4 ) );
}
4 changes: 2 additions & 2 deletions base/dists/betaprime/skewness/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <stdio.h>

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

int main( void ) {
Expand Down
2 changes: 1 addition & 1 deletion base/dists/degenerate/mode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var i;
for ( i = 0; i < 10; i++ ) {
mu = randu();
v = mode( mu );
console.log( 'µ: %d, Mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
console.log( 'µ: %d, mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
}
```

Expand Down
2 changes: 1 addition & 1 deletion base/dists/degenerate/mode/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ var i;
for ( i = 0; i < 10; i++ ) {
mu = randu();
v = mode( mu );
console.log( 'µ: %d, Mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
console.log( 'µ: %d, mode(X;µ): %d', mu.toFixed( 4 ), v.toFixed( 4 ) );
}
2 changes: 1 addition & 1 deletion base/dists/exponential/kurtosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_kurtosis( lambda );
printf( "λ: %lf, Kurt[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, Kurt(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/kurtosis/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_kurtosis( lambda );
printf( "λ: %lf, Kurt[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, Kurt(X;λ): %lf\n", lambda, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/exponential/mean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_mean( lambda );
printf( "λ: %lf, E[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, E(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/mean/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_mean( lambda );
printf( "λ: %lf, E[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, E(X;λ): %lf\n", lambda, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/exponential/median/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_median( lambda );
printf( "λ: %lf, Median[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, Median(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/median/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_median( lambda );
printf( "λ: %lf, Median[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, Median(X;λ): %lf\n", lambda, y );
}
}
12 changes: 1 addition & 11 deletions base/dists/exponential/median/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ var resolve = require( 'path' ).resolve;
var tape = require( 'tape' );
var tryRequire = require( '@stdlib/utils/try-require' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var abs = require( '@stdlib/math/base/special/abs' );
var NINF = require( '@stdlib/constants/float64/ninf' );
var EPS = require( '@stdlib/constants/float64/eps' );


// VARIABLES //
Expand Down Expand Up @@ -71,22 +69,14 @@ tape( 'if provided a rate parameter `lambda` that is not a nonnegative number, t
tape( 'the function returns the median of an exponential distribution', opts, function test( t ) {
var expected;
var lambda;
var delta;
var tol;
var i;
var y;

expected = data.expected;
lambda = data.lambda;
for ( i = 0; i < expected.length; i++ ) {
y = median( lambda[i] );
if ( y === expected[ i ] ) {
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
} else {
delta = abs( y - expected[ i ] );
tol = 2.0 * EPS * abs( expected[ i ] );
t.ok( delta <= tol, 'within tolerance. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[ i ]+'. Δ: '+delta+'. tol: '+tol+'.' );
}
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
}
t.end();
});
2 changes: 1 addition & 1 deletion base/dists/exponential/mode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_mode( lambda );
printf( "λ: %lf, Mode[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, mode(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/mode/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_mode( lambda );
printf( "λ: %lf, Mode[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, mode(X;λ): %lf\n", lambda, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/exponential/skewness/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_skewness( lambda );
printf( "λ: %lf, Skewness[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, skew(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/skewness/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_skewness( lambda );
printf( "λ: %lf, Skewness[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, skew(X;λ): %lf\n", lambda, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/exponential/stdev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_stdev( lambda );
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/exponential/stdev/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
lambda = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_exponential_stdev( lambda );
printf( "λ: %lf, Standard Deviation[X;λ]: %lf\n", lambda, y );
printf( "λ: %lf, SD(X;λ): %lf\n", lambda, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/exponential/stdev/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ tape( 'the function returns the standard deviation of an exponential distributio
t.equal( y, expected[i], 'lambda: '+lambda[i]+', y: '+y+', expected: '+expected[i] );
} else {
delta = abs( y - expected[ i ] );
tol = 2.0 * EPS * abs( expected[ i ] );
tol = 1.0 * EPS * abs( expected[ i ] );
t.ok( delta <= tol, 'within tolerance. lambda: '+lambda[i]+'. y: '+y+'. E: '+expected[i]+'. Δ: '+delta+'. tol: '+tol+'.' );
}
}
Expand Down
2 changes: 1 addition & 1 deletion base/dists/f/kurtosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ for ( i = 0; i < 10; i++ ) {
d1 = ( randu()*10.0 ) + EPS;
d2 = ( randu()*20.0 ) + EPS;
v = kurtosis( d1, d2 );
console.log( 'd1: %d, d2: %d, skew(X;d1,d2): %d', d1.toFixed( 4 ), d2.toFixed( 4 ), v.toFixed( 4 ) );
console.log( 'd1: %d, d2: %d, Kurt(X;d1,d2): %d', d1.toFixed( 4 ), d2.toFixed( 4 ), v.toFixed( 4 ) );
}
```

Expand Down
2 changes: 1 addition & 1 deletion base/dists/gumbel/mean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ for ( i = 0; i < 10; i++ ) {
mu = ( randu()*10.0 ) - 5.0;
beta = randu() * 20.0;
y = mean( mu, beta );
console.log( 'µ: %d, β: %d, h(X;µ,β): %d', mu.toFixed( 4 ), beta.toFixed( 4 ), y.toFixed( 4 ) );
console.log( 'µ: %d, β: %d, E(X;µ,β): %d', mu.toFixed( 4 ), beta.toFixed( 4 ), y.toFixed( 4 ) );
}
```

Expand Down
16 changes: 8 additions & 8 deletions base/dists/kumaraswamy/median/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
* // returns 1.0
*/
double stdlib_base_dists_kumaraswamy_median( const double a, const double b ) {
if (
stdlib_base_is_nan( a ) ||
stdlib_base_is_nan( b ) ||
a <= 0.0 || b <= 0.0
) {
return 0.0/0.0; // NaN
}
return 1.0 - stdlib_base_pow( 0.5, 1.0 / b );
if (
stdlib_base_is_nan( a ) ||
stdlib_base_is_nan( b ) ||
a <= 0.0 || b <= 0.0
) {
return 0.0/0.0; // NaN
}
return 1.0 - stdlib_base_pow( 0.5, 1.0 / b );
}
2 changes: 1 addition & 1 deletion base/dists/laplace/entropy/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tape( 'if provided a nonpositive `b`, the function returns `NaN`', function test
t.end();
});

tape( 'the function returns the excess entropy of a Laplace distribution', function test( t ) {
tape( 'the function returns the differential entropy of a Laplace distribution', function test( t ) {
var expected;
var delta;
var tol;
Expand Down
2 changes: 1 addition & 1 deletion base/dists/laplace/entropy/test/test.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ tape( 'if provided a nonpositive `b`, the function returns `NaN`', opts, functio
t.end();
});

tape( 'the function returns the excess entropy of a Laplace distribution', opts, function test( t ) {
tape( 'the function returns the differential entropy of a Laplace distribution', opts, function test( t ) {
var expected;
var delta;
var tol;
Expand Down
2 changes: 1 addition & 1 deletion base/dists/logistic/mean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int main( void ) {
mu = random_uniform( 0.0, 10.0 ) - 5.0;
s = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_logistic_mean( mu, s );
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/logistic/mean/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ int main( void ) {
mu = random_uniform( 0.0, 10.0 ) - 5.0;
s = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_logistic_mean( mu, s );
printf( "µ: %lf, s: %lf, Mean(X;µ,s): %lf\n", mu, s, y );
printf( "µ: %lf, s: %lf, E(X;µ,s): %lf\n", mu, s, y );
}
}
2 changes: 1 addition & 1 deletion base/dists/logistic/mode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int main( void ) {
mu = random_uniform( 0.0, 10.0 ) - 5.0;
s = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_logistic_mode( mu, s );
printf( "µ: %lf, s: %lf, Mode(X;µ,s): %lf\n", mu, s, y );
printf( "µ: %lf, s: %lf, mode(X;µ,s): %lf\n", mu, s, y );
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion base/dists/logistic/mode/examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ int main( void ) {
mu = random_uniform( 0.0, 10.0 ) - 5.0;
s = random_uniform( 0.0, 20.0 );
y = stdlib_base_dists_logistic_mode( mu, s );
printf( "µ: %lf, s: %lf, Mode(X;µ,s): %lf\n", mu, s, y );
printf( "µ: %lf, s: %lf, mode(X;µ,s): %lf\n", mu, s, y );
}
}
Loading

0 comments on commit 39b2b27

Please sign in to comment.