diff --git a/.editorconfig b/.editorconfig index 60d743f..0779e8a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -121,7 +121,7 @@ indent_style = tab [*.{md,md.txt}] indent_style = space indent_size = 4 -trim_trailing_whitespace = false +trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. # Set properties for `usage.txt` files: [usage.txt] diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 4677526..7afb0c5 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -50,8 +50,8 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - # Run workflow job if `publish` workflow run is successful or when the workflow is manually run: - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} + # Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule: + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} # Define the sequence of job steps... steps: diff --git a/.github/workflows/test_published_package.yml b/.github/workflows/test_published_package.yml index c909574..c6b6f97 100644 --- a/.github/workflows/test_published_package.yml +++ b/.github/workflows/test_published_package.yml @@ -47,8 +47,8 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - # Run workflow job if `publish` workflow run is successful or when the workflow is manually run: - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} + # Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule: + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }} # Define the job's steps: steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fffd28..9de1bcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-12-16) +## Unreleased (2025-01-12)
@@ -34,6 +34,7 @@ This release closes the following issue:
+- [`97c434d`](https://github.com/stdlib-js/stdlib/commit/97c434de1ac819d4f616202b10ebdce3970a76d8) - **chore:** directly draw from the desired distribution instead of adding constants _(by Philipp Burckhardt)_ - [`ccbaa42`](https://github.com/stdlib-js/stdlib/commit/ccbaa42486fd36b15e2c17b0d30e0b0508f533d6) - **style:** fix formatting _(by Athan Reines)_ - [`930ed98`](https://github.com/stdlib-js/stdlib/commit/930ed98207b9ae67f00b23917755589dbbd03fe5) - **feat:** add C implementation for `stats/base/dists/uniform/variance` [(#3951)](https://github.com/stdlib-js/stdlib/pull/3951) _(by Aayush Khanna)_ @@ -47,10 +48,11 @@ This release closes the following issue: ### Contributors -A total of 2 people contributed to this release. Thank you to the following contributors: +A total of 3 people contributed to this release. Thank you to the following contributors: - Aayush Khanna - Athan Reines +- Philipp Burckhardt
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index f7b71a8..92d7552 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -26,6 +26,9 @@ Dan Rose 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 Dorrin Sotoudeh @@ -47,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> @@ -74,6 +78,7 @@ Philipp Burckhardt Prajwal Kulkarni Pranav Goswami Pranjal Jha <97080887+PraneGIT@users.noreply.github.com> +Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com> Pratik Singh <97464067+Pratik772846@users.noreply.github.com> Pratyush Kumar Chouhan Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com> @@ -114,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 6d88402..5553e95 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ int main( void ) { for ( i = 0; i < 25; i++ ) { a = random_uniform( 0.0, 20.0 ); - b = random_uniform( 0.0, 20.0 ) + a; + b = random_uniform( a, a+20.0 ); y = stdlib_base_dists_uniform_variance( a, b ); printf( "a: %lf, b: %lf, Var(X;a,b): %lf\n", a, b, y ); } @@ -303,7 +303,7 @@ See [LICENSE][stdlib-license]. ## Copyright -Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. +Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors].
diff --git a/benchmark/c/benchmark.c b/benchmark/c/benchmark.c index 71afdde..44c5317 100644 --- a/benchmark/c/benchmark.c +++ b/benchmark/c/benchmark.c @@ -101,7 +101,7 @@ static double benchmark( void ) { for ( i = 0; i < 100; i++ ) { min[ i ] = random_uniform( 0.0, 20.0 ); - max[ i ] = random_uniform( 0.0, 20.0 ) + min[ i ]; + max[ i ] = random_uniform( min[ i ], min[ i ] + 20.0 ); } t = tic(); diff --git a/examples/c/example.c b/examples/c/example.c index 5e55ea6..ecd60aa 100644 --- a/examples/c/example.c +++ b/examples/c/example.c @@ -33,7 +33,7 @@ int main( void ) { for ( i = 0; i < 25; i++ ) { a = random_uniform( 0.0, 20.0 ); - b = random_uniform( 0.0, 20.0 ) + a; + b = random_uniform( a, a+20.0 ); y = stdlib_base_dists_uniform_variance( a, b ); printf( "a: %lf, b: %lf, Var(X;a,b): %lf\n", a, b, y ); }