PHP 클래스 MathPHP\Probability\Distribution\Discrete\Geometric

상속: extends Discrete
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
CDF ( integer $k, float $p ) : float Geometric distribution - cumulative distribution function (lower cumulative)
PMF ( integer $k, float $p ) : float Geometric distribution - probability mass function

메소드 상세

CDF() 공개 정적인 메소드

The probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... } https://en.wikipedia.org/wiki/Geometric_distribution k failures where k ∈ {0, 1, 2, 3, ...} pmf = 1 - (1 - p)ᵏ⁺¹
public static CDF ( integer $k, float $p ) : float
$k integer number of trials k ≥ 0
$p float success probability 0 < p ≤ 1
리턴 float

PMF() 공개 정적인 메소드

The probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... } https://en.wikipedia.org/wiki/Geometric_distribution k failures where k ∈ {0, 1, 2, 3, ...} pmf = (1 - p)ᵏp
public static PMF ( integer $k, float $p ) : float
$k integer number of trials k ≥ 1
$p float success probability 0 < p ≤ 1
리턴 float