public void AddGrid(Grid.GridBase grid) { if (GridList.Count > 0) { GridList[GridList.Count - 1].GridConnection(grid); } GridList.Add(grid); }
public RNdArray Back(RNdArray error, params double[] options) { RNdArray e = error; Grid.GridBase tg = GridList[GridList.Count - 1]; Grid.GridBase pg = tg.PrevGrid; Grid.GridBase ng = tg.NextGrid; while (tg != null) { tg.SetOption(options); e = tg.Back(e); tg = tg.PrevGrid; } Generation++; return(e); }
public RNdArray Forward(RNdArray input) { RNdArray i = input; Grid.GridBase tg = GridList[0]; Grid.GridBase pg = tg.PrevGrid; Grid.GridBase ng = tg.NextGrid; while (tg != null) { i = tg.Forward(i); pg = tg; tg = tg.NextGrid; } return(i); }