PHP Class MathPHP\Probability\Distribution\Discrete\BinomialTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: markrogoyski/math-php

Public Methods

Method Description
dataProviderForCDF ( ) Data provider for cdf Data: [ n, r, p, cdf ]
dataProviderForPMF ( ) Data provider for binomial Data: [ n, r, p, binomial distribution ]
testCDF ( integer $n, integer $r, float $p, float $cdf )
testPMF ( integer $n, integer $r, float $p, float $pmf )

Method Details

dataProviderForCDF() public method

Data provider for cdf Data: [ n, r, p, cdf ]
public dataProviderForCDF ( )

dataProviderForPMF() public method

Data provider for binomial Data: [ n, r, p, binomial distribution ]
public dataProviderForPMF ( )

testCDF() public method

public testCDF ( integer $n, integer $r, float $p, float $cdf )
$n integer
$r integer
$p float
$cdf float

testPMF() public method

public testPMF ( integer $n, integer $r, float $p, float $pmf )
$n integer
$r integer
$p float
$pmf float