public double[] Calculate(double[] input) { _inputLayer.SetValues(input); for (int i = 1; i < _layers.Length; i++) { _layers[i].CalculateValues(); } return(_outputLayer.GetValues()); }