Added function for getting phenotype diversity as a float