URL: <https://savannah.gnu.org/bugs/?66767>
Summary: Feature: inverse of binomial distribution Group: GNU Scientific Library Submitter: fermelelundi Submitted: Sat 08 Feb 2025 07:28:59 PM UTC Category: Build Severity: 3 - Normal Operating System: Status: None Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 2.8 _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sat 08 Feb 2025 07:28:59 PM UTC By: Fermé le Lundi <fermelelundi> A naive implementation of the inverse binomial distribution: it simply finds the infimum for the binomial distribution and analogously the supremum for the binomial distribution through an iterative procedure. No test cases or documentation provided, but tests can be conducted using the attached test-file. Additional administrative steps: 1- add both function names to `gsl_cdf.h`: int gsl_cdf_binomial_Pinv (const double P, const double p, const unsigned int n); int gsl_cdf_binomial_Qinv (const double Q, const double p, const unsigned int n); 2- Amend Makefile.am by adding `binomialinv.c` to the list of SOURCES. _______________________________________________________ File Attachments: ------------------------------------------------------- Name: binomialinv.c Size: 2KiB <https://file.savannah.gnu.org/file/binomialinv.c?file_id=56864> ------------------------------------------------------- Name: test-binomialinv.c Size: 1KiB <https://file.savannah.gnu.org/file/test-binomialinv.c?file_id=56865> AGPL NOTICE These attachments are served by Savane. You can download the corresponding source code of Savane at https://savannah.gnu.org/source/savane-9aa36b8aaaab70f75d4f4abb1d9f8d6bd3eed2b1.tar.gz _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66767> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature