Пример #1
0
 public void AddGrid(Grid.GridBase grid)
 {
     if (GridList.Count > 0)
     {
         GridList[GridList.Count - 1].GridConnection(grid);
     }
     GridList.Add(grid);
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }