public void DistributionFunctionTest3()
{
double[] cdf =
{
0, 0.0277778, 0.0816327, 0.140625, 0.197531, 0.25,
0.297521, 0.340278, 0.378698, 0.413265, 0.444444
};
FDistribution target = new FDistribution(4, 2);
for (int i = 0; i < 11; i++)
{
double x = i / 10.0;
double actual = target.DistributionFunction(x);
double expected = cdf[i];
Assert.AreEqual(expected, actual, 1e-5);
Assert.IsFalse(double.IsNaN(actual));
}
}