PHP Class MathPHP\Probability\Distribution\Continuous\Exponential

Inheritance: extends Continuous
Show file Open project: markrogoyski/math-php

Public Methods

Method Description
CDF ( float $x, float ) : float Cumulative distribution function
PDF ( float $x, float ) : float Probability density function
mean ( float ) : number Mean of the distribution

Method Details

CDF() public static method

f(x;λ) = 1 − ℯ^⁻λx x ≥ 0 = 0 x < 0
public static CDF ( float $x, float ) : float
$x float the random variable
float often called the rate parameter
return float

PDF() public static method

f(x;λ) = λℯ^⁻λx x ≥ 0 = 0 x < 0
public static PDF ( float $x, float ) : float
$x float the random variable
float often called the rate parameter
return float

mean() public static method

μ = λ⁻¹
public static mean ( float ) : number
float often called the rate parameter
return number