MATH-849: added new test in GammaDistributionTest to check that new
implementation of Gamma.logGamma does not compromise the resolution of MATH-735. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379271 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa2da41c68
commit
86f09b3e1f
|
@ -329,6 +329,11 @@ public class GammaDistributionTest extends RealDistributionAbstractTest {
|
|||
doTestMath753(1.0, 1.5, 0.5, 0.0, 0.0, "gamma-distribution-shape-1.csv");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMath753Shape8() throws IOException {
|
||||
doTestMath753(8.0, 1.5, 1.0, 0.0, 0.0, "gamma-distribution-shape-8.csv");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMath753Shape10() throws IOException {
|
||||
doTestMath753(10.0, 1.0, 1.0, 0.0, 0.0, "gamma-distribution-shape-10.csv");
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -41,6 +41,12 @@ y : p(bfloat(x), 1, 1);
|
|||
printf(out, "~{~h, ~h~%~}", join(x, y));
|
||||
close(out);
|
||||
|
||||
out : openw("gamma-distribution-shape-8.csv");
|
||||
x : float(makelist(i / 32, i, 1, 3200));
|
||||
y : p(bfloat(x), 8, 1);
|
||||
printf(out, "~{~h, ~h~%~}", join(x, y));
|
||||
close(out);
|
||||
|
||||
out : openw("gamma-distribution-shape-10.csv");
|
||||
x : float(makelist(i / 4, i, 1, 400));
|
||||
y : p(bfloat(x), 10, 1);
|
||||
|
|
Loading…
Reference in New Issue