bernoulliPMF - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "xf_fintech/bernoulli_distribution.hpp"
template <typename DT>
DT bernoulliPMF (
    int k,
    DT p
    )

bernoulliPMF it implement a probability mass 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 probability value.