Skip to content

Commit 56c0c00

Browse files
committed
Auto-generated commit
1 parent 512e493 commit 56c0c00

File tree

30 files changed

+40
-68
lines changed

30 files changed

+40
-68
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,7 @@ A total of 14 people contributed to this release. Thank you to the following con
15611561

15621562
<details>
15631563

1564+
- [`8bf8285`](https://github.com/stdlib-js/stdlib/commit/8bf8285aba0ecbd00ae145c4c5c098cd28135814) - **chore:** minor clean-up _(by Philipp Burckhardt)_
15641565
- [`9685979`](https://github.com/stdlib-js/stdlib/commit/968597945b0e8d1042ce17b6e08ca0f3e64058b4) - **feat:** add C implementation for `stats/base/dists/logistic/variance` [(#3994)](https://github.com/stdlib-js/stdlib/pull/3994) _(by Aayush Khanna, stdlib-bot)_
15651566
- [`c0d9c76`](https://github.com/stdlib-js/stdlib/commit/c0d9c760c9657e28d6b1d3daf5013708a928ae6c) - **feat:** add C implementation `stats/base/dists/rayleigh/pdf` [(#3945)](https://github.com/stdlib-js/stdlib/pull/3945) _(by Vinit Pandit, Philipp Burckhardt)_
15661567
- [`3a05645`](https://github.com/stdlib-js/stdlib/commit/3a05645a2054675503b44dffb2f6817298bc9bd9) - **feat:** add C implementation of `stats/base/dists/rayleigh/logcdf` [(#3957)](https://github.com/stdlib-js/stdlib/pull/3957) _(by Vinit Pandit, Philipp Burckhardt)_

base/dists/arcsine/entropy/benchmark/c/benchmark.c

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

102102
for ( i = 0; i < 100; i++ ) {
103-
a[ i ] = random_uniform( 0, 20 );
104-
b[ i ] = random_uniform( 0, 20 ) + a[ i ];
103+
a[ i ] = random_uniform( 0.0, 20.0 );
104+
b[ i ] = random_uniform( 0.0, 20.0 ) + a[ i ];
105105
}
106106

107107
t = tic();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var variance = require( './../lib' );
3030

3131
// MAIN //
3232

33-
bench( pkg, function benchmark( b ) {
33+
bench( pkg+'::native', function benchmark( b ) {
3434
var min;
3535
var max;
3636
var len;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ int main( void ) {
2828
for ( i = 0; i < 25; i++ ) {
2929
p = (double)rand() / ( (double)RAND_MAX + 1.0 );
3030
y = stdlib_base_dists_bernoulli_mean( p );
31-
printf( "x: %lf , E(X;p): %lf\n", p , y );
31+
printf( "x: %lf, E(X;p): %lf\n", p, y );
3232
}
3333
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ int main( void ) {
2828
for ( i = 0; i < 25; i++ ) {
2929
p = (double)rand() / ( (double)RAND_MAX + 1.0 );
3030
y = stdlib_base_dists_bernoulli_mode( p );
31-
printf( "x: %lf , H(X;p): %lf\n", p , y );
31+
printf( "x: %lf, H(X;p): %lf\n", p, y );
3232
}
3333
}

base/dists/beta/mode/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include "stdlib/stats/base/dists/beta/mode.h"
2020

21-
2221
/**
2322
* Returns the mode of a beta distribution.
2423
*

base/dists/beta/variance/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include "stdlib/stats/base/dists/beta/variance.h"
2020

21-
2221
/**
2322
* Returns the variance of a beta distribution.
2423
*

base/dists/betaprime/kurtosis/benchmark/c/benchmark.c

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

102102
for ( i = 0; i < 100; i++ ) {
103-
alpha[ i ] = random_uniform( 0, 20 );
104-
beta[ i ] = random_uniform( 0, 20 ) + 4.0;
103+
alpha[ i ] = random_uniform( 0.0, 20.0 );
104+
beta[ i ] = random_uniform( 0.0, 20.0 ) + 4.0;
105105
}
106106

107107
t = tic();

base/dists/betaprime/skewness/benchmark/c/benchmark.c

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

102102
for ( i = 0; i < 100; i++ ) {
103-
alpha[ i ] = random_uniform( 0, 20 );
104-
beta[ i ] = random_uniform( 0, 20 ) + 3.0;
103+
alpha[ i ] = random_uniform( 0.0, 20.0 );
104+
beta[ i ] = random_uniform( 0.0, 20.0 ) + 3.0;
105105
}
106106

107107
t = tic();

base/dists/betaprime/stdev/benchmark/c/benchmark.c

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

102102
for ( i = 0; i < 100; i++ ) {
103-
alpha[ i ] = random_uniform( 0, 20 );
104-
beta[ i ] = random_uniform( 0, 20 ) + 2.0;
103+
alpha[ i ] = random_uniform( 0.0, 20.0 );
104+
beta[ i ] = random_uniform( 0.0, 20.0 ) + 2.0;
105105
}
106106

107107
t = tic();

0 commit comments

Comments
 (0)