Encog.Engine.Data.BasicEngineData.CreatePair C# (CSharp) Method

CreatePair() public static method

Create a new neural data pair object of the correct size for the neural network that is being trained. This object will be passed to the getPair method to allow the neural data pair objects to be copied to it.
public static CreatePair ( int inputSize, int idealSize ) : IEngineData
inputSize int The size of the input data.
idealSize int The size of the ideal data.
return IEngineData
        public static IEngineData CreatePair(int inputSize, int idealSize)
        {
            IEngineData result;

            if (idealSize > 0)
            {
                result = new BasicEngineData(new double[inputSize],
                        new double[idealSize]);
            }
            else
            {
                result = new BasicEngineData(new double[inputSize]);
            }

            return result;
        }