using System; using System.Collections.Generic; using S = Science.Statistics.BasicStatistics; namespace ScienceTest.StatisticsTest.BasicStatisticsTest { public class RegressionNormalCurveTest { public RegressionNormalCurveTest() { } private string result; public string Result { get{return result;} } public void Compute() { S.NormalCurve nc = new S.NormalCurve(); double x = nc.ToStandardUnit(100.0 - 2.0 * 31.0); result += x.ToString() + "\r\n"; S.Regression reg = new S.Regression(0.0,1.0,0.0,1.0,0.6); double y = reg.PredictedYFromX(-x); result += y.ToString()+"\r\n"; result += ((100.0 - nc.AreaBetween(y,-y))/2.0).ToString(); } } } /* 0.495850347327154 -0.297510208396292 38.3038507735432 */