public double Predict(int[] symbolList)
{
int symbolListLength = symbolList.Length;
if (this.History.Count + symbolListLength <= this.Depth) {
return Math.Pow(0.5, symbolListLength); //note: diff from pyaixi: removing if
}
double probHistory = this.Root.LogProbability;
this.update_tree(symbolList);
double probSequence = this.Root.LogProbability;
this.revert_tree(symbolListLength);
return Math.Exp(probSequence - probHistory);
}