コード例 #1
0
        public MasterCell(IEnumerable <ISimpleCell> ancestorCells)
        {
            Cell = new SimpleCell();

            Ancestors = new List <Ancestor>();

            foreach (var cell in ancestorCells)
            {
                Ancestors.Add(new Ancestor(cell));
            }
        }
コード例 #2
0
ファイル: Ancestor.cs プロジェクト: grozaserban/NeuralNet
 public Ancestor(ISimpleCell cell = null)
 {
     Cell   = cell ?? new SimpleCell();
     Weight = (float)generator.NextDouble();
 }