public void CalculateValues(PopulationMean xPop_Mean, DataSet xDataSet) { SetPopulation_Mean((double)xPop_Mean.GetValue()); SetSample(xDataSet.GetDSValues()); SetSampleValues(xDataSet); double Mean = (double)((Sample_Mean)SubExpressions[1][1]).GetValue(); double h_mean = (double)((PopulationMean)SubExpressions[2][0]).GetValue(); double sd = (double)((Sample_SD)SubExpressions[1][2]).GetValue(); int sampleN = (int)((Sample_Size)SubExpressions[1][3]).GetValue(); double temp = Mean - h_mean; double temp2 = sd / Math.Sqrt(sampleN); double temp3 = temp / temp2; temp3 = Math.Abs(temp3); temp3 = Math.Round(temp3, 4); Value = (double)temp3; }