public double CalculateRMS() { if (this.setSize == 0) { return 0; } double err = Math.Sqrt(this.globalError / this.setSize); return err; }