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

GetRandomActiveCells() public method

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