private IList <Perceptron> PopulatePerceptrons(LayerDefinition layerDefinition)
        {
            var perceptrons = new List <Perceptron>();

            for (var i = 0; i < layerDefinition.GetSize(); i++)
            {
                perceptrons.Add(new Perceptron(layerDefinition.InputsCount));
            }
            return(perceptrons);
        }
 public Layer(LayerDefinition layerDefinition)
 {
     Perceptrons = this.PopulatePerceptrons(layerDefinition);
 }