コード例 #1
0
ファイル: StatsTest.php プロジェクト: robzienert/PHPStats
 public function test_upperGamma()
 {
     $this->assertEquals(1.83939, round(Stats::upperGamma(3, 1), 5));
     $this->assertEquals(1.35335, round(Stats::upperGamma(3, 2), 5));
     $this->assertEquals(1.08762, round(Stats::upperGamma(3, 2.5), 5));
     $this->assertEquals(362479.92676, round(Stats::upperGamma(10, 3), 5));
     $this->assertEquals(359928.96939, round(Stats::upperGamma(10, 4), 5));
     $this->assertEquals(351330.23222, round(Stats::upperGamma(10, 5), 5));
     $this->assertEquals(332425.65036, round(Stats::upperGamma(10, 6), 5));
 }