In hierarchical k-means, the vocabulary tree of depth D, branch factor K should have total number of nodes (excluding the root node) as follows:
nodes = K + K^2 + ... + K^D
nodes = (K^(D+1)-K)/(K-1)
However, vl_hikmeanshist
gives the histogram with one extra bin. On their website, the number of nodes is calculated as:
nodes = (K^(D+1)-1)/(K-1)
They also say that they "not counting the root which carries no information". So why their formula is different? They do not post their contact on the website so I'm unable to ask them. Can someone shed some light on this matter?