Skip to content

Commit 6376377

Browse files
committed
Auto-generated commit
1 parent 4b078eb commit 6376377

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ This release closes the following issue:
3434

3535
<details>
3636

37+
- [`1d5aa47`](https://github.com/stdlib-js/stdlib/commit/1d5aa47204c258b674d3db4aec92fbd2475e5ea7) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_
3738
- [`c88e9f5`](https://github.com/stdlib-js/stdlib/commit/c88e9f51302adbe0d828fd298d9dbc138f6b3e7b) - **chore:** clean-up, fix tests, and add FIXMEs _(by Athan Reines)_
3839
- [`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)_
3940

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int main( void ) {
286286
for ( i = 0; i < 25; i++ ) {
287287
t = random_uniform( 0.0, 5.0 );
288288
a = random_uniform( 0.0, 10.0 );
289-
b = random_uniform( a, 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
289+
b = random_uniform( a+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
290290
c = random_uniform( a, b );
291291
y = stdlib_base_dists_triangular_mgf( t, a, b, c );
292292
printf( "t: %lf, a: %lf, b: %lf, c: %lf, M_X(t;a,b,c): %lf\n", t, a, b, c, y );

benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static double benchmark( void ) {
105105
for ( i = 0; i < 100; i++ ) {
106106
t[ i ] = random_uniform( 0.0, 5.0 );
107107
a[ i ] = random_uniform( 0.0, 10.0 );
108-
b[ i ] = random_uniform( a[ i ], 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
108+
b[ i ] = random_uniform( a[ i ]+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
109109
c[ i ] = random_uniform( a[ i ], b[ i ] );
110110
}
111111

examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int main( void ) {
3737
for ( i = 0; i < 25; i++ ) {
3838
t = random_uniform( 0.0, 5.0 );
3939
a = random_uniform( 0.0, 10.0 );
40-
b = random_uniform( a, 40.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
40+
b = random_uniform( a+STDLIB_CONSTANT_FLOAT64_EPS, 40.0 );
4141
c = random_uniform( a, b );
4242
y = stdlib_base_dists_triangular_mgf( t, a, b, c );
4343
printf( "t: %lf, a: %lf, b: %lf, c: %lf, M_X(t;a,b,c): %lf\n", t, a, b, c, y );

0 commit comments

Comments
 (0)