Functional unsupervised classification of spatial biodiversity