Skip to content

feat: add C implementation for stats/base/dists/chi/skewness#10836

Open
rautelaKamal wants to merge 6 commits intostdlib-js:developfrom
rautelaKamal:feat-chi-skewness-c
Open

feat: add C implementation for stats/base/dists/chi/skewness#10836
rautelaKamal wants to merge 6 commits intostdlib-js:developfrom
rautelaKamal:feat-chi-skewness-c

Conversation

@rautelaKamal
Copy link
Contributor

@rautelaKamal rautelaKamal commented Mar 9, 2026

Description

What is the purpose of this pull request?

This pull request:

  • Adds a C implementation for @stdlib/stats/base/dists/chi/skewness.
  • Adds N-API bindings to expose the C implementation to Node.js.
  • Refactors the JavaScript implementation to fallback safely to pure JS if the native module fails to load.
  • Updates documentation and includes standalone C benchmarks and examples.

Checklist

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

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

Other

No.


@stdlib-js/reviewers

@stdlib-bot stdlib-bot added Statistics Issue or pull request related to statistical functionality. Needs Review A pull request which needs code review. labels Mar 9, 2026
@stdlib-bot
Copy link
Contributor

Hello! Thank you for your contribution to stdlib.

We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:

  1. Please read our contributing guidelines.

  2. Update your pull request description to include this checked box:

    - [x] Read, understood, and followed the [contributing guidelines](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md)

This acknowledgment confirms that you've read the guidelines, which include:

  • The developer's certificate of origin
  • Your agreement to license your contributions under the project's terms

We can't review or accept contributions without this acknowledgment.

Thank you for your understanding and cooperation. We look forward to reviewing your contribution!

@stdlib-bot
Copy link
Contributor

stdlib-bot commented Mar 9, 2026

Coverage Report

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review A pull request which needs code review. Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants