The J^1 index calculates the Shannon Entropy of a tree, where at each node with two children, the Shannon Entropy is the sum of p_i log_2(p_i) over the two children i, and p_i is L / (L + R), where L and R represent the number of tips connected to the two daughter branches.