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 Jan 12, 2025
1 parent 4b078eb commit 6376377
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ This release closes the following issue:

<details>

- [`1d5aa47`](https://github.com/stdlib-js/stdlib/commit/1d5aa47204c258b674d3db4aec92fbd2475e5ea7) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_
- [`c88e9f5`](https://github.com/stdlib-js/stdlib/commit/c88e9f51302adbe0d828fd298d9dbc138f6b3e7b) - **chore:** clean-up, fix tests, and add FIXMEs _(by Athan Reines)_
- [`98fa29f`](https://github.com/stdlib-js/stdlib/commit/98fa29f0c3aa52aca0bbfb9bdf173250b4fd860a) - **feat:** add C implementation for `stats/base/dists/triangular/mgf` [(#4330)](https://github.com/stdlib-js/stdlib/pull/4330) _(by Prashant Kumar Yadav, Philipp Burckhardt)_

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
t = random_uniform( 0.0, 5.0 );
a = random_uniform( 0.0, 10.0 );
b = random_uniform( a, 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
b = random_uniform( a+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
c = random_uniform( a, b );
y = stdlib_base_dists_triangular_mgf( t, a, b, c );
printf( "t: %lf, a: %lf, b: %lf, c: %lf, M_X(t;a,b,c): %lf\n", t, a, b, c, y );
Expand Down
2 changes: 1 addition & 1 deletion benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static double benchmark( void ) {
for ( i = 0; i < 100; i++ ) {
t[ i ] = random_uniform( 0.0, 5.0 );
a[ i ] = random_uniform( 0.0, 10.0 );
b[ i ] = random_uniform( a[ i ], 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
b[ i ] = random_uniform( a[ i ]+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
c[ i ] = random_uniform( a[ i ], b[ i ] );
}

Expand Down
2 changes: 1 addition & 1 deletion examples/c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main( void ) {
for ( i = 0; i < 25; i++ ) {
t = random_uniform( 0.0, 5.0 );
a = random_uniform( 0.0, 10.0 );
b = random_uniform( a, 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
b = random_uniform( a+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
c = random_uniform( a, b );
y = stdlib_base_dists_triangular_mgf( t, a, b, c );
printf( "t: %lf, a: %lf, b: %lf, c: %lf, M_X(t;a,b,c): %lf\n", t, a, b, c, y );
Expand Down

0 comments on commit 6376377

Please sign in to comment.