Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
MathPHP
Probability
Distribution
Discrete
Bernoulli
PHP 클래스 MathPHP\Probability\Distribution\Discrete\Bernoulli
상속:
extends
Discrete
파일 보기
프로젝트 열기: markrogoyski/math-php
공개 메소드들
메소드
설명
CDF
(
integer
$k
,
float
$p
) :
float
Bernoulli distribution - cumulative distribution function
PMF
(
integer
$k
,
float
$p
) :
float
Bernoulli distribution - probability mass function
메소드 상세
CDF()
공개
정적인
메소드
https://en.wikipedia.org/wiki/Bernoulli_distribution 0 for k < 0 1 - p for 0 ≤ k < 1 1 for k ≥ 1
public
static
CDF
(
integer
$k
,
float
$p
) :
float
$k
integer
number of successes k ∈ {0, 1}
$p
float
success probability 0 < p < 1
리턴
float
PMF()
공개
정적인
메소드
https://en.wikipedia.org/wiki/Bernoulli_distribution q = (1 - p) for k = 0 q = p for k = 1
public
static
PMF
(
integer
$k
,
float
$p
) :
float
$k
integer
number of successes k ∈ {0, 1} (int type hint with checkLimit enforces this)
$p
float
success probability 0 < p < 1
리턴
float