AIXI.CTWContextTree.revert_tree_history C# (CSharp) Method

revert_tree_history() public method

public revert_tree_history ( int symbolCount ) : void
symbolCount int
return void
        public void revert_tree_history(int symbolCount)
        {
            Debug.Assert(symbolCount>=0);
            int historyLength = this.History.Count;
            Debug.Assert(historyLength >= symbolCount);
            int newSize = historyLength - symbolCount;
            this.History = this.History.GetRange(0,newSize);
        }