The use of entropy to measure structural diversity