Exemple #1
0
        public MatrixIncrement NextWallCombinationOnLastRow()
        {
            var res = IncrementLastRowCellWalls(0);

            if (res == MatrixIncrement.Incremented)
            {
                LastRowCombinationCounter++;
            }
            LastIncrementResult = res;
            return(res);
        }
Exemple #2
0
        public override void AppendRow()
        {
            base.AppendRow();
            for (int i = 0; i < xWidth; i++)
            {
                Rows.Last[i] = new iNeuron();
            }
            SetRowItemsNeigbours(Rows.Last);

            LastRowCombinationCounter = 0;
            LastIncrementResult       = MatrixIncrement.Incremented;
        }
Exemple #3
0
 public void AppendRow(Row <iNeuron> newRow)
 {
     base.AppendRow();
     for (int i = 0; i < xWidth; i++)
     {
         Rows.Last[i]      = new iNeuron();
         Rows.Last[i].h    = newRow[i].h;
         Rows.Last[i].v    = newRow[i].v;
         Rows.Last[i].Memo = (useMemo)? newRow[i].Memo: 0;
     }
     SetRowItemsNeigbours(Rows.Last);
     LastRowCombinationCounter = 0;
     LastIncrementResult       = MatrixIncrement.Incremented;
 }