Diversity index estimation by adaptive sampling