PHP 클래스 MathPHP\Probability\Distribution\Continuous\Uniform

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

공개 메소드들

메소드 설명
CDF ( number $a, number $b, number $x ) Continuous uniform distribution - cumulative distribution function https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)
PDF ( number $a, number $b, number $x ) Continuous uniform distribution - probability desnsity function https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)
mean ( number $a, number $b ) : number Mean of the distribution

메소드 상세

CDF() 공개 정적인 메소드

cdf = 0 for x < a x - a cdf = ----- for a ≤ x < b b - a cdf = 1 x ≥ b
public static CDF ( number $a, number $b, number $x )
$a number lower boundary of the distribution
$b number upper boundary of the distribution
$x number percentile

PDF() 공개 정적인 메소드

1 pdf = ----- for a ≤ x ≤ b b - a pdf = 0 for x < a, x > b
public static PDF ( number $a, number $b, number $x )
$a number lower boundary of the distribution
$b number upper boundary of the distribution
$x number percentile

mean() 공개 정적인 메소드

a + b μ = ----- 2
public static mean ( number $a, number $b ) : number
$a number lower boundary of the distribution
$b number upper boundary of the distribution
리턴 number