Program for calculating diversity curves