Skip to content

feat: add C implementation for erlang/cdf#10738

Closed
rautelaKamal wants to merge 1 commit intostdlib-js:developfrom
rautelaKamal:feat/stats/base/dists/erlang/cdf-c-port
Closed

feat: add C implementation for erlang/cdf#10738
rautelaKamal wants to merge 1 commit intostdlib-js:developfrom
rautelaKamal:feat/stats/base/dists/erlang/cdf-c-port

Conversation

@rautelaKamal
Copy link
Contributor

This PR adds a C implementation for @stdlib/stats/base/dists/erlang/cdf.

Closes #3568

Changes

  • Added src/addon.c: Node.js native addon entry point

  • Added src/main.c: C implementation delegating to stdlib_base_dists_gamma_cdf

  • Added include/stdlib/stats/base/dists/erlang/cdf.h: C header file

  • Added lib/native.js: JavaScript wrapper for native addon

  • Added benchmark/benchmark.native.js: Native benchmark

  • Added test/test.native.js: Native tests

  • Added manifest.json: Build manifest

  • Updated package.json: Added gypfile, include, and src directories

  • Read, understood, and followed the contributing guidelines

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

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/erlang/cdf $\color{red}248/251$
$\color{green}+98.80%$
$\color{green}10/10$
$\color{green}+100.00%$
$\color{red}2/3$
$\color{green}+66.67%$
$\color{red}248/251$
$\color{green}+98.80%$

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

@rautelaKamal rautelaKamal changed the title Feat/stats/base/dists/erlang/cdf c port feat: add C implementation for erlang/cdf Mar 7, 2026
Signed-off-by: Kamal Singh Rautela <e22cseu1624@bennett.edu.in>
@rautelaKamal rautelaKamal force-pushed the feat/stats/base/dists/erlang/cdf-c-port branch from b1165ba to 8b4fe94 Compare March 8, 2026 16:46
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. 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/erlang/cdf

2 participants