using System; using System.Collections.Generic; using System.Linq; using System.Text; using S = Science.Statistics.BasicStatistics; namespace Statistics4Ed.Chapter18.SetB { public class Exercise05 { public Exercise05() { } private string result; public string Result { get{return result;} } public void Compute() { S.BoxModel coin = new S.BoxModel(); coin.AddTicket(0.0, 1); coin.AddTicket(1.0, 1); coin.NumberOfDraws = 10000; S.CentralLimitTheorem th = new S.CentralLimitTheorem(coin); result += th.AreaBetween(4900.0, 5050.0).ToString() + "\r\n"; result += th.AreaBetween(0.0, 4900.0).ToString() + "\r\n"; result += th.AreaBetween(5050.0, 10000.0).ToString() + "\r\n"; } } } /* 81.8594614121384 2.27501318090434 15.8655253581568 */