MathPHP\Statistics\DescriptiveTest::testVarianceExceptionDFLessThanZero PHP Méthode

testVarianceExceptionDFLessThanZero() public méthode

    public function testVarianceExceptionDFLessThanZero()
    {
        $this->setExpectedException('MathPHP\\Exception\\OutOfBoundsException');
        Descriptive::variance([1, 2, 3], -1);
    }
DescriptiveTest