It is the number of species unique to each environment that is used to calculate species diversity between two nearby ecosystems. Considering the above slope example, the species diversity between any two patches and their communities in that particular slope represents beta diversity.