public CreateConditionalNode ( int attributeValue, long count ) : int | ||
attributeValue | int | |
count | long | |
Résultat | int |
public int CreateConditionalNode(int attributeValue, long count)
{
if (nodes >= this.attribute.Length)
{
Resize();
}
childCount[nodes] = 0;
next[nodes] = -1;
parent[nodes] = -1;
conditional[nodes] = 0;
this.attribute[nodes] = attributeValue;
nodeCount[nodes] = count;
if (nodeChildren[nodes] == null)
{
nodeChildren[nodes] = new int[DEFAULT_CHILDREN_INITIAL_SIZE];
}
return nodes++;
}