|
| inverse (float $target) |
| The Inverse CDF of the distribution. More...
|
|
| between (float $x₁, float $x₂) |
| CDF between - probability of being between two points, x₁ and x₂ The area under a continuous distribution, that lies between two specified points. More...
|
|
| outside (float $x₁, float $x₂) |
| CDF outside - Probability of being below x₁ and above x₂. More...
|
|
| above (float $x) |
| CDF above - Probability of being above x to ∞ Area under a continuous distribution, that lies above a specified point. More...
|
|
| rand () |
| Produce a random number with a particular distribution. More...
|
|
| __construct (... $params) |
| Constructor. More...
|
|
| pdf (float $x) |
| Probability density function. More...
|
|
| cdf (float $x) |
| Cumulative distribution function. More...
|
|
| mean () |
| Mean average. More...
|
|
|
const | GUESS_THRESHOLD = 10 |
|
const | GUESS_ALLOWANCE = 8 |
|
◆ above()
MathPHP\Probability\Distribution\Continuous\Continuous::above |
( |
float |
$x | ) |
|
CDF above - Probability of being above x to ∞ Area under a continuous distribution, that lies above a specified point.
P(above) = 1 - CDF(x)
- Parameters
-
- Returns
- float
◆ between()
MathPHP\Probability\Distribution\Continuous\Continuous::between |
( |
float |
$x₁, |
|
|
float |
$x₂ |
|
) |
| |
CDF between - probability of being between two points, x₁ and x₂ The area under a continuous distribution, that lies between two specified points.
P(between) = CDF($x₂) - CDF($x₁)
- Parameters
-
float | $x₁ | Lower bound |
float | $x₂ | Upper bound |
- Returns
- float
◆ inverse()
MathPHP\Probability\Distribution\Continuous\Continuous::inverse |
( |
float |
$target | ) |
|
The Inverse CDF of the distribution.
For example, if the calling class CDF definition is CDF($x, $d1, $d2) than the inverse is called as inverse($target, $d1, $d2)
- Parameters
-
float | $target | The area for which we are trying to find the $x |
- Todo:
- check the parameter ranges.
- Returns
- number
◆ outside()
MathPHP\Probability\Distribution\Continuous\Continuous::outside |
( |
float |
$x₁, |
|
|
float |
$x₂ |
|
) |
| |
CDF outside - Probability of being below x₁ and above x₂.
The area under a continuous distribution, that lies above and below two points.
P(outside) = 1 - P(between) = 1 - (CDF($x₂) - CDF($x₁))
- Parameters
-
float | $x₁ | Lower bound |
float | $x₂ | Upper bound |
- Returns
- float
◆ rand()
MathPHP\Probability\Distribution\Continuous\Continuous::rand |
( |
| ) |
|
Produce a random number with a particular distribution.
- Returns
- number
- Exceptions
-
The documentation for this class was generated from the following file:
- src/Probability/Distribution/Continuous/Continuous.php