public update_node ( int index, int symbol ) : void | ||
index | int | |
symbol | int | |
return | void |
public void update_node(int index, int symbol)
{
this.Nodes[index].LogKt += this.LogKtMultiplier(index, symbol);
this.UpdateLogProbability(index);
if (symbol == 0)
{
this.Nodes[index].NumberOf0S += 1;
}
else if (symbol == 1)
{
this.Nodes[index].NumberOf1S += 1;
}
}