bernoulliCDF - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#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.