public void DistributionFunctionTest()
{
double[] expected =
{
0.7729505, 0.7931890, 0.8105287, 0.8254671, 0.8384167, 0.8497145,
0.8596339, 0.8683966, 0.8761824, 0.8831381, 0.8893841, 0.8950196
};
CauchyDistribution target = new CauchyDistribution(location: -7.2, scale: 6.23);
for (int i = 0; i < expected.Length; i++)
{
double actual = target.DistributionFunction(i);
Assert.AreEqual(expected[i], actual, 1e-7);
Assert.IsFalse(Double.IsNaN(actual));
}
}