public double CalculateError(double[][] input, double[][] ideal) { var errorCalculation = new ErrorCalculation(); for (var i = 0; i < ideal.Length; i++) { ComputeOutputs(input[i]); errorCalculation.UpdateError(OutputLayer.Fire, ideal[i]); } return(errorCalculation.CalculateRootMeanSquare()); }