Skip to content

Conversation

anandkaranubc
Copy link
Contributor

@anandkaranubc anandkaranubc commented Jan 5, 2025

Resolves

#3498


Description

Purpose of this pull request

This pull request:

  • Adds a C implementation of the chi distribution's standard deviation.
  • Includes benchmarks for the C implementation.
  • Provides examples demonstrating the usage of the chi distribution's standard deviation in C.

Related Issues

Does this pull request have any related issues?

This pull request:


Questions

Any questions for reviewers of this pull request?

No.


Other Information

Any other relevant information?

Requires #4514 to be merged first to implement stats/base/dists/chi/stdev


Checklist

Please ensure the following tasks are completed before submitting this pull request:


@stdlib-js/reviewers

---
type: pre_push_report
description: Results of running various checks prior to pushing changes.
report:
  - task: run_javascript_examples
    status: na
  - task: run_c_examples
    status: na
  - task: run_cpp_examples
    status: na
  - task: run_javascript_readme_examples
    status: na
  - task: run_c_benchmarks
    status: na
  - task: run_cpp_benchmarks
    status: na
  - task: run_fortran_benchmarks
    status: na
  - task: run_javascript_benchmarks
    status: na
  - task: run_julia_benchmarks
    status: na
  - task: run_python_benchmarks
    status: na
  - task: run_r_benchmarks
    status: na
  - task: run_javascript_tests
    status: na
---
@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. labels Jan 5, 2025
@anandkaranubc anandkaranubc marked this pull request as draft January 7, 2025 21:16
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Jan 7, 2025
@anandkaranubc
Copy link
Contributor Author

/stdlib help

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Feb 23, 2025
@stdlib-bot
Copy link
Contributor

@anandkaranubc, available slash commands include:

  • /stdlib check-files - Check for required files.
  • /stdlib update-copyright-years - Update copyright header years.
  • /stdlib lint-autofix - Auto-fix lint errors.
  • /stdlib merge - Merge changes from develop branch into this PR.
  • /stdlib rebase - Rebase this PR on top of develop branch.

@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label Feb 23, 2025
@Planeshifter
Copy link
Member

/stdlib update-copyright-years

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label Apr 30, 2025
@stdlib-bot stdlib-bot added Good First PR A pull request resolving a Good First Issue. and removed bot: In Progress Pull request is currently awaiting automation. labels Apr 30, 2025
@Planeshifter
Copy link
Member

@anandkaranubc C implementation for @stdlib/stats/base/dists/chi/mean is now available!

@anandkaranubc
Copy link
Contributor Author

/stdlib update-copyright-years

@stdlib-bot stdlib-bot added the bot: In Progress Pull request is currently awaiting automation. label May 1, 2025
@stdlib-bot
Copy link
Contributor

/stdlib update-copyright-years

@anandkaranubc, the slash command failed to complete. Please check the workflow logs for details.

View workflow run

@stdlib-bot stdlib-bot removed the bot: In Progress Pull request is currently awaiting automation. label May 1, 2025
@stdlib-bot
Copy link
Contributor

stdlib-bot commented May 1, 2025

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/chi/stdev $\color{green}165/165$
$\color{green}+100.00\%$
$\color{green}8/8$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}165/165$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: passed
  - task: lint_package_json
    status: passed
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: passed
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: passed
  - task: lint_c_examples
    status: passed
  - task: lint_c_benchmarks
    status: passed
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
@anandkaranubc anandkaranubc marked this pull request as ready for review May 1, 2025 07:18
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label May 1, 2025
@anandkaranubc anandkaranubc requested a review from Planeshifter May 1, 2025 07:18
@anandkaranubc anandkaranubc added the C Issue involves or relates to C. label May 1, 2025
Signed-off-by: Philipp Burckhardt <[email protected]>
Copy link
Member

@Planeshifter Planeshifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's land it... Thanks, @anandkaranubc!

@Planeshifter Planeshifter added the Ready To Merge A pull request which is ready to be merged. label May 3, 2025
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label May 3, 2025
@stdlib-bot
Copy link
Contributor

stdlib-bot commented May 3, 2025

PR Commit Message

feat(stats): add C implementation for `stats/base/dists/chi/stdev`

PR-URL: https://github.com/stdlib-js/stdlib/pull/4590
Closes: https://github.com/stdlib-js/stdlib/issues/3498
Ref: https://github.com/stdlib-js/stdlib/issues/4514

Co-authored-by: Philipp Burckhardt <[email protected]>
Co-authored-by: stdlib-bot <[email protected]>
Reviewed-by: Philipp Burckhardt <[email protected]>
Signed-off-by: Philipp Burckhardt <[email protected]>

Please review the above commit message and make any necessary adjustments.

@Planeshifter Planeshifter merged commit 053722e into stdlib-js:develop May 3, 2025
29 checks passed
@anandkaranubc anandkaranubc deleted the rfc/chi-stdev branch May 10, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C Issue involves or relates to C. Good First PR A pull request resolving a Good First Issue. Ready To Merge A pull request which is ready to be merged. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC]: Add C implementation for @stdlib/stats/base/dists/chi/stdev

3 participants