using System; using System.Collections.Generic; using S = Science.Statistics.BasicStatistics; namespace ScienceTest.StatisticsTest.BasicStatisticsTest { public class TwoSampleZTestTest { public TwoSampleZTestTest() { } private string result; public string Result { get{return result;} } public void Compute() { S.StandardDeviationAndAverage Cal = new S.StandardDeviationAndAverage(); Cal.Average = 0.91; Cal.ByBootstrapMethod(); S.StandardDeviationAndAverage Stanford = new S.StandardDeviationAndAverage(); Stanford.Average = 0.88; Stanford.ByBootstrapMethod(); S.StandardErrorAndExpectedValue CalSE = new S.StandardErrorAndExpectedValue(Cal,400); S.StandardErrorAndExpectedValue StanfordSE = new S.StandardErrorAndExpectedValue(Stanford, 100); S.TwoSampleZTest test = new S.TwoSampleZTest(CalSE, StanfordSE); result += test.zValue.ToString() + " "; result += test.PValue.ToString()+" "; result += test.Conclusion+"\r\n"; } } } // 0.844902832960428 19.9082546305317 Accept null.