From df289046daaef08699d63f3bea6de61503b4a968 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 12 Jan 2025 22:35:52 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 3 ++- CONTRIBUTORS | 4 +++- NOTICE | 2 +- README.md | 2 +- benchmark/c/benchmark.c | 2 +- examples/c/example.c | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c256ac..8127a4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2025-01-02) +## Unreleased (2025-01-12)
@@ -34,6 +34,7 @@ This release closes the following issue:
+- [`f3df15f`](https://github.com/stdlib-js/stdlib/commit/f3df15f118d563573f27d2d2b96e35b842f05a18) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_ - [`0d52a8a`](https://github.com/stdlib-js/stdlib/commit/0d52a8a0eec7221c0147185c4ce3317db0458498) - **chore:** minor clean-up _(by Philipp Burckhardt)_ - [`743b72e`](https://github.com/stdlib-js/stdlib/commit/743b72eeacfb44801345377b14db54b06add5468) - **feat:** add C implementation for `stats/base/dists/exponential/logcdf` [(#4174)](https://github.com/stdlib-js/stdlib/pull/4174) _(by Prashant Kumar Yadav, Philipp Burckhardt)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 173c07b..92d7552 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -27,6 +27,7 @@ Daniel Killenberger Daniel Yu <40680511+Daniel777y@users.noreply.github.com> Debashis Maharana Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com> +Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com> Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com> Dominic Lim <46486515+domlimm@users.noreply.github.com> Dominik Moritz @@ -49,6 +50,7 @@ Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison +Karan Anand <119553199+anandkaranubc@users.noreply.github.com> Karthik Prakash <116057817+skoriop@users.noreply.github.com> Kohantika Nath <145763549+kohantikanath@users.noreply.github.com> Krishnendu Das <86651039+itskdhere@users.noreply.github.com> @@ -117,7 +119,7 @@ UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com> Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> -Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com> +Vivek Maurya Xiaochuan Ye Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com> Yernar Yergaziyev diff --git a/NOTICE b/NOTICE index e6e7482..cbd3a29 100644 --- a/NOTICE +++ b/NOTICE @@ -1 +1 @@ -Copyright (c) 2016-2024 The Stdlib Authors. +Copyright (c) 2016-2025 The Stdlib Authors. diff --git a/README.md b/README.md index a5f8114..02a5cfe 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ int main( void ) { for ( i = 0; i < 25; i++ ) { x = random_uniform( 0.0, 100.0 ); - lambda = random_uniform( 0.0, 100.0 ) + STDLIB_CONSTANT_FLOAT64_EPS; + lambda = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 ); y = stdlib_base_dists_exponential_logcdf( x, lambda ); printf( "x: %lf, λ: %lf, ln(F(x;λ)): %lf\n", x, lambda, y ); } diff --git a/benchmark/c/benchmark.c b/benchmark/c/benchmark.c index 6cfe016..87e86a1 100644 --- a/benchmark/c/benchmark.c +++ b/benchmark/c/benchmark.c @@ -102,7 +102,7 @@ static double benchmark( void ) { for ( i = 0; i < 100; i++ ) { x[ i ] = random_uniform( 0.0, 100.0 ); - lambda[ i ] = random_uniform( 0.0, 100.0 ) + STDLIB_CONSTANT_FLOAT64_EPS; + lambda[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 ); } t = tic(); diff --git a/examples/c/example.c b/examples/c/example.c index 2a8efde..5158bd4 100644 --- a/examples/c/example.c +++ b/examples/c/example.c @@ -34,7 +34,7 @@ int main( void ) { for ( i = 0; i < 25; i++ ) { x = random_uniform( 0.0, 100.0 ); - lambda = random_uniform( 0.0, 100.0 ) + STDLIB_CONSTANT_FLOAT64_EPS; + lambda = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 100.0 ); y = stdlib_base_dists_exponential_logcdf( x, lambda ); printf( "x: %lf, λ: %lf, ln(F(x;λ)): %lf\n", x, lambda, y ); }