public MatrixIncrement NextWallCombinationOnLastRow() { var res = IncrementLastRowCellWalls(0); if (res == MatrixIncrement.Incremented) { LastRowCombinationCounter++; } LastIncrementResult = res; return(res); }
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; }
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; }