27#ifndef BINOMIALHELPER_H
28#define BINOMIALHELPER_H
Provides functions for binomial distribution calculations.
Definition: BinomialHelper.h:37
static double binomialProbability(int n, int k, double p)
Calculates the binomial probability.
Definition: BinomialHelper.cpp:48
static int inverseBinomialCDF(double targetP, int n, double p)
Calculates the inverse of the binomial CDF.
Definition: BinomialHelper.cpp:62
static double binomialCDF(int n, int k, double p)
Calculates the cumulative distribution function (CDF) for a binomial distribution.
Definition: BinomialHelper.cpp:53
static double logCombination(int n, int k)
Calculates the natural logarithm of the combination of n items taken k at a time.
Definition: BinomialHelper.cpp:38
static double logFactorial(int n)
Calculates the natural logarithm of the factorial of an integer.
Definition: BinomialHelper.cpp:29
static int combination(int n, int k)
Calculates the combination of n items taken k at a time.
Definition: BinomialHelper.cpp:43