Doo.Machine.HTM.HTMCell.GetRandomLearningCells C# (CSharp) Method

GetRandomLearningCells() public method

public GetRandomLearningCells ( int t ) : List
t int
return List
        public List<HTMCell> GetRandomLearningCells(int t)
        {
            List<HTMCell> learningCells = new List<HTMCell>();
            List<HTMColumn> columns = this.Column.Region.Neighbors(this.Column);
            foreach (HTMColumn col in columns)
            {
                //if (col == this.Column)
                //    continue;
                foreach (HTMCell cell in col.Cells)
                    if (cell.GetLearning(t))
                        learningCells.Add(cell);
            }
            return learningCells;
        }