QuantLib: BinomialDistribution Class Reference

A free/open-source library for quantitative finance Reference manual - version 1.12

Public Member Functions | List of all members
BinomialDistribution Class Reference

Binomial probability distribution function. More...

`#include <ql/math/distributions/binomialdistribution.hpp>`

Inherits unary_function< Real, Real >.

## Public Member Functions
| BinomialDistribution (Real p, BigNatural n)
Real | operator() (BigNatural k) const

## Detailed Description

Binomial probability distribution function.

formula here ... Given an integer k it returns its probability in a Binomial distribution with parameters p and n.