PHP.mk документација

stats_dens_pmf_hypergeometric

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

function.stats-dens-pmf-hypergeometric.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека function.stats-dens-pmf-hypergeometric.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
stats_dens_pmf_hypergeometric

Референца за `function.stats-dens-pmf-hypergeometric.php` со подобрена типографија и навигација.

function.stats-dens-pmf-hypergeometric.php

stats_dens_pmf_hypergeometric

(PECL stats >= 1.0.0)

stats_dens_pmf_hypergeometricProbability mass function of the hypergeometric distribution

= NULL

stats_dens_pmf_hypergeometric(
         float $n1,
         float $n2,
         float $N1,
         float $N2
): float

Враќа маса на веројатност на n1, where the random variable follows the hypergeometric distribution of which the number of failure is n2, the number of success samples is N1, and the number of failure samples is N2.

Параметри

n1

The number of success, at which the probability mass is calculated

n2

The number of failure of the distribution

N1

The number of success samples of the distribution

N2

The number of failure samples of the distribution

Вратени вредности

Масата на веројатност на n1 or false за неуспех.

Белешки од корисници 1 белешка

brendan at gamblingtec dot com
пред 6 години
You can use this method to work out lottery odds:

/**
* N is the population size OR total balls in the lottery draw
* K is the number of success states in the population OR the number of correct balls drawn from the pool
* n is the number of draws OR the number of times we draw from the pool to get the winning numbers.
*/

$N = 49; //Total balls in the pool
$K = 1; //Successful matches to win

$method = new Hypergeometric($N, $K, $K);
$odds = $method->pmf($K);
        
return 1/$odds;

//Will return 49
Навигација

Прелистувај сродни теми и функции.

На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.