#include "xf_fintech/bernoulli_distribution.hpp"
template <typename DT> DT bernoulliCDF ( int k, DT p )
bernoulliCDF it implement a cumulative distribution function for bernoulli distribution
Parameters:
DT | data type supported include float and double |
k | k successes in 1 independent Bernoulli trial |
p | p is the probability of success of a single trial. |
Returns:
it belong to [0, 1] and also is a cumulative probability value.