public void testInformationCalculation()
{
double[] fairCoinProbabilities = new double[] { 0.5, 0.5 };
double[] loadedCoinProbabilities = new double[] { 0.01, 0.99 };
Assert
.AreEqual(1.0, Util.information(fairCoinProbabilities),
0.001);
Assert.AreEqual(0.08079313589591118, Util
.information(loadedCoinProbabilities), 0.000000000000000001);
}