A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://TheAlgorithms.github.io/C-Plus-Plus/d9/d24/poisson__dist_8cpp_source.html below:

TheAlgorithms/C++: probability/poisson_dist.cpp Source File

Go to the documentation of this file. 18 return

events / timeframe;

32 for

(

int

i = x - 1; i > 0; i--) {

47 return

(std::pow(expected, x) * std::exp(-expected)) /

fact

(x);

56 for

(

int

i =

lower

; i <= upper; i++) {

66 double

rate, expected;

68

std::cout <<

"Poisson rate : "

<< rate << std::endl;

71

std::cout <<

"Poisson expected : "

<< expected << std::endl;

75

std::cout <<

"Poisson 0-8 successes : "

double poisson_x_successes(double expected, double x)

double poisson_rate(double events, double timeframe)

double poisson_expected(double rate, double time)

double poisson_range_successes(double expected, double lower, double upper)

std::string lower(std::string word)

function to convert a C++ string to lower case


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4