#include "xf_fintech/poisson_distribution.hpp"
template <typename DT> DT poissonPMF ( unsigned int k, DT m )
poissonPMF it implement a probability mass function for poisson distribution
Parameters:
DT | data type supported include float and double |
k | the number of occurrences |
m | is a positive real number, it is equal to the expected value of a discrete random variable and also to its variance. |
Returns:
it belong to [0, 1] and also is a probability value.