36#include "../include/STK_Law_Binomial.h"
In this file we declare raw the functions.
virtual Integer icdf(Real const &p) const
inverse cumulative distribution function The quantile is defined as the smallest value x such that F...
Real const & prob() const
virtual Real cdf(Real const &t) const
compute the cumulative distribution function Give the probability that a Binomial random variate is l...
virtual Integer rand() const
virtual Real lpdf(Integer const &x) const
compute the log probability distribution function Give the value of the log-pdf at the point x.
virtual Real pdf(Integer const &x) const
compute the probability distribution function (density) Give the value of the pdf at the point x.
Real prob_
probability of success in a Bernoulli trial
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Real binomial_pdf_raw(Real const &x, Real const &n, Real const &p)
Compute the generalized binomial probability mass function.
Real binomial_lpdf_raw(Real const &x, Real const &n, Real const &p)
Compute the generalized binomial log-probability mass function.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
Arithmetic properties of STK fundamental types.
static Type NA()
Adding a Non Available (NA) special number.