public void ConstructorTest2()
{
// Example from http://www.nag.com/numeric/cl/nagdoc_cl23/pdf/G01/g01ddc.pdf
double[] b =
{
1.36, 1.14, 2.92, 2.55, 1.46, 1.06, 5.27, 1.11, 3.48,
1.10, 0.88, 0.51, 1.46, 0.52, 6.20, 1.69, 0.08, 3.67,
2.81, 3.49
};
var sw = new ShapiroWilkDistribution(b.Length);
double expected = 0.5246;
double actual = sw.ComplementaryDistributionFunction(0.9590);
Assert.AreEqual(expected, actual, 1e-3);
}