public static double CalculateFBPScore(double limitValue, List <double> localValues) { double mean = FBPMath.CalculateMean(localValues); double stdError = FBPMath.CalculateStdDeviation(localValues) / Math.Sqrt((double)localValues.Count); double sqrt2 = Math.Sqrt(2); if (stdError == 0) { stdError = 0.000001; } return(1 - (0.5 * (1 + erf((limitValue - mean) / (sqrt2 * stdError))))); }
public double CalculateMean() { return(FBPMath.CalculateMean(this.values)); }