calculate_influence function

Calculate the Influence Index for a Leaf Node